Hello can anyone tell me or help me to solve this error?
local users = {
["layla"] = 5,
}
addEventHandler("onServerPlayerLogin", root, function()
local name = exports.serverCore:getPlayerAccountName(source)
if users[name] ~= nil then
setElementData(source,"premium", users[name], true)
end
end)
Kindly please help with this