getGangData
Last updated
Last updated
Description
Fetches a specific value from the player’s gang data (e.g., grade, isboss).
Parameters
source
(number): The player's server-side source ID.
data
(string): The key to retrieve from the gang table (e.g., "grade"
, "isboss"
).
Return Value
Returns the value associated with the specified key.
Returns nil
if the key doesn't exist or the player has no gang.
Example Use Case
local isBoss = ps.getGangData(source, "isboss")
print("Is gang leader: " .. tostring(isBoss))