Skip to content

Server Command p_finduid

Pazaz edited this page Nov 24, 2023 · 1 revision

2001 p_finduid(player_uid player)

Command Details

#f03c15 Opcode 2001 #f03c15 Command p_finduid
#f03c15 Script rs2
#f03c15 Description Gets protected access for a player by its UID

Parameters

Argument Data type Range Default Description
player player_uid uid of player

Return Types

Returns Data type Range Description
boolean Returns true if protected access was obtained

Pointers

Required Protected Player Access Set Corrupted
None Yes active_player None

Examples

Catching protected access fail
if (p_finduid($uid) = false) {
    queue(runwhenever, 0);
    return;
}