HasKey
lua
It counts every kind of access: owner, renter, society grade, key holder, and physical keys when they are turned on. The player must be online.
Parameters
- player:
number | stringThe player's server ID or identifier (citizenid) - propertyId:
numberThe property ID - lock?:
stringA lock ID to check, such as'manage_property_keys'. Leave it out to check entry access.
Return Value
booleanfalseif the property doesn't exist or the player is offline.
Example
lua