I am trying to make a printer and I made a timer that every 10 seconds it will set moneyPrinted to moneyPrinted + some money. I want it to sent to client so client will know what to draw on the printer. Its not working
timer.Create("printMoney",10,0,function()
self.moneyPrinted = self.moneyPrinted + math.random(4987, 6231)
net.Start("sendMoney")
net.WriteInt(self.moneyPrinted)
net.Send(self)
end)
ERROR
bad argument #2 to 'WriteInt' (number expected, got no value)
[editline]18th November 2017[/editline]
oh wait…
OMG I AM A IDIOT
[editline]18th November 2017[/editline]
well I figured out the WriteInt part(I forgot the second argument xDD) but the net message still wont send to client.
[editline]18th November 2017[/editline]
Im getting this now :
net.Send: Entity is not a player!