RemoveKey
lua
Parameters
- playerId:
number | false | 0The player who removes the key. Passfalseor0for a server call, which skips all checks. - propertyId:
numberThe property ID - keyHolder:
stringThe identifier (citizenid) of the key holder
Return Value
booleanWhether the key was removedstring?The reason, if it failed
Behavior
- The player needs the
manage_property_keyspermission on the property. Owners always have it. - It fails during a police lockdown that blocks key management.
- Both players get a notification (the key holder only if online).
- No checks are done.
- The key holder gets a notification if they are online.
Player call
Server call