Help with ENT:SetupDataTables()

So I set up my data table


function ENT:SetupDataTables()
	self:NetworkVar("Int",120,"AmmoRemain");
end

And now I am trying to draw ‘AmmoRemain’ using draw.SimpleText(self:GetAmmoRemain(),“Font3”,-84,-27,Color(255,255,255)) in a cam.Start3D2D() and it prints not as 120 as expected, and not as nil, but as 0… I think I must have done something wrong around here -> self:NetworkVar(“Int”,120,“AmmoRemain”) because AmmoRemain doesnt print as nil…
Can anyone help me fix this? Thank you.

The second argument is the slot. This should be 0. Set the value to 120 in your entity’s Initialize method.

Works like it should now, thank you very much for your help.