Hello,
I got a problem with "GetPlayerPropertyValue", it works only Serverside.
Serverscript - same result with other values.
Clientscript
Errorlog - clientside (no errors serverside)
So the log isnt really useful.. in this case ^^
Hope someone can help me
I got a problem with "GetPlayerPropertyValue", it works only Serverside.
Serverscript - same result with other values.
PHP Code:
AddEvent("OnPlayerJoin", function(playerID)
SetPlayerPropertyValue(playerID, "testValue", playerID + 1, true)
end)
Clientscript
PHP Code:
AddEvent("OnPlayerSpawn", function()
AddPlayerChat("P: "..GetPlayerPropertyValue(GetPlayerId(), "testValue"))
end)
Errorlog - clientside (no errors serverside)
PHP Code:
[2020.01.XX]: [string "test/client.lua"]:2: attempt to concatenate a nil value
Hope someone can help me
Comment