When a player purchases an item the players Money Int is reset to whatever previous Int they had exactly 5 seconds after purchase, and the items NwInt is also set to whatever it previously was. I’ve scanned all of my code and nothing is even called every 5 seconds/5 seconds after purchase.
Also, I’ve even scanned through my code to see if “Money” or “Pistol” is called during the purchase time and it is not. This might be due to conflicting variable names but I doubt it considering I don’t have very much add-ons or other Gamemodes installed.
if(name == NULL or cost == nil) then return false end if(GNWInt(ply,"Money") >= cost) then NWInt(ply,name,1) NWInt(ply,"Money",-cost) return false end ply:Notify("Can't afford that!") return false
NWInt() and GNWInt():
function NWInt(ply, type, int)
ply:SetNWInt(type, ply:GetNWInt(type) + int)
function GNWInt(ply, type, int)