As the title says, I’ve been having problems with SetNWInt & GetNWInt, I created a Derma Menu with props you can buy, and when you purchase a selected prop it will say the correct amount. Five seconds later, it reverts back to it’s default number which is $500. I changed the value manually through the console server side, and it didn’t revert back to $500, but when I did it client side on the console it did.
I’ve spent hours trying to debug the problem, but found no solution to the problem. I’ve tried to completely stop using it, and debug it from the console. Nothing seemed to work.
local meta = FindMetaTable("Player") function meta:SetMoney(amt) self:SetNWInt("Cash", amt) end function meta:GetMoney() return self:GetNWInt("Cash") end function meta:AddMoney(amt) self:SetMoney(self:GetMoney() + amt) end function meta:TakeMoney(amt) self:SetMoney(self:GetMoney() - amt) end