I am running into issues using networked variables and the wiki isnt being much help. My goal is to have a boolean value that I can change.
This one runs without lua errors but when I do “GetCanDropAmmo” it always returns false no matter what number I put in there
function ENT:SetupDataTables() self:NetworkVar( "Bool", 1, "CanDropAmmo") end
And this gives me a lua error
function ENT:SetupDataTables() self:NetworkVar( "Bool", true, "CanDropAmmo") end
Where line 77 is
" local CanAmmo = self:GetCanDropAmmo() "
and 97 is the my custom function under ENT:Use.