string || nil sam.Player.get_exclusive( player ply, (optional) player admin )
Get exclusive reason for a player if he has one.
If used inside a command then pass the player/admin who ran the command to it.
string || nil
Exclusive reason if it exists.
local ply = Player(1) sam.Player.set_exclusive(ply, "jailed") local exclusive = sam.Player.get_exclusive(ply) if exclusive then print(exclusive) -- prints "Player is jailed!" return end
Last updated 2 years ago