Hello everyone,
I started to code some basic stuff and i'm really enjoying it.
While learning the basic how to code, i always find people using a table server-end like PlayerData[player] to store all the data during a session.
But on the dev wiki i found the functions Set/GetPlayerPropertyValue which could allow to do exactly the same stuff.
PlayerData[player].steamid = GetPlayerSteamid() is the same as SetPlayerPropertyValue(player, steamid, GetPlayerSteamid()) (right ??)
My question is: why do people use the PlayerData[player] way to store the data and not the built-in functions Set/GetPlayerPropertyValue ?
From what i could understand, Set/GetPlayerPropertyValue are functions accessible from server and client-side ? Is that for this reason ? security reason ? If yes, Can we set a Property accessible only from one side ?
Thanks for you time and answers
Best'
Willzy_x
I started to code some basic stuff and i'm really enjoying it.
While learning the basic how to code, i always find people using a table server-end like PlayerData[player] to store all the data during a session.
But on the dev wiki i found the functions Set/GetPlayerPropertyValue which could allow to do exactly the same stuff.
PlayerData[player].steamid = GetPlayerSteamid() is the same as SetPlayerPropertyValue(player, steamid, GetPlayerSteamid()) (right ??)
My question is: why do people use the PlayerData[player] way to store the data and not the built-in functions Set/GetPlayerPropertyValue ?
From what i could understand, Set/GetPlayerPropertyValue are functions accessible from server and client-side ? Is that for this reason ? security reason ? If yes, Can we set a Property accessible only from one side ?
Thanks for you time and answers
Best'
Willzy_x
Comment