Hello I was wondering When I could actually use this, because I wanted to do something along the lines of this…
(Say in the init.lua file where your on initial spawn it does something along the lines of this)
ply:GetTable().Salary = 0
And so, when I get into the Shared.lua, I add something to see what the Salary is…
function GetSalary(ply)
Msg(ply:Nick() .. "'s new salary is: " .. ply:GetTable().Salary)
-- return ply:GetTable().Salary
end
concommand.Add("GetSalary", GetSalary)
Whats wrong because this is the error I end up getting in game.
TestRP\gamemode\shared.lua:19: attempt to index field 'Salary' (a nil value) unable to concantenate value....
The error is just a slight remembrance of what it is…
Please need help
Thanks <3