isLeader

Checks if the player is a leader of their gang.

Parameters:

  • source (number): Player server ID

Returns:

  • boolean: True if leader, false otherwise

Example Use Case

if ps.isLeader(source) then
    print("This player is the gang leader.")
else
    print("This player is not the gang leader.")
end

Last updated