Not sure if “updating” the 3d2d is the right word.
I’m working on a moneyprinter addon, and I’m trying to update the 3d2d textscreen showing the amount of paper left.
Whenever I try to use self:Draw it throws the error:
[ERROR] addons/advancedmp/lua/entities/amp_base/cl_init.lua:38: attempt to index global 'self' (a nil value) 1. func - addons/advancedmp/lua/entities/amp_base/cl_init.lua:38 2. unknown - lua/includes/extensions/net.lua:32
Can I use self in clientside? I should be able to because earlier I used: self.Paper in drawing simple text.
This is the code for cl_init.lua
net.Receive("Update3d2d", function() self:Draw() end)
and for init.lua:
function ENT:AddPaper(amount) self.Paper = self.Paper + amount net.Start("Update3d2d") net.Broadcast() end
On another note, is there an easy way to adjust 3d2d textscreens? It’s a bit boggling trying to get it in the right position. Any help is appreciated, thanks.