Client Events
sn_properties:client:onEnter
Triggered when player enters a property this includes the outside zone if there is one
RegisterNetEvent('sn_properties:client:onEnter', function(property_id)
local property = exports.sn_properties:getProperty(property_id)
--run code here
end)property_id:
number
sn_properties:client:onExit
Triggered when player leaves a property this includes the outside zone if there is one
RegisterNetEvent('sn_properties:client:onExit', function(property_id)
end)property_id:
number
sn_properties:client:insideProperty
Triggered only when the player is inside a house this does not include the outside zone
property_id:
number
sn_properties:client:exitProperty
Triggered only when the player leaves the inside of a house this does not include the outside zone
property_id:
number
sn_properties:client:onZoneEnter
Triggered when player enters a property a property zone it will trigger multiple times if theres outside aswell
property_id:
numberzoneID:
'inside' | 'outside'
sn_properties:client:onZoneExit
Triggered when player leaves a property this includes the outside zone if there is one
property_id:
numberzoneID:
'inside' | 'outside'
sn_properties:client:enterMotorhome
Triggered only when the player is inside a house this does not include the outside zone
plate:
string
sn_properties:client:exitMotorhome
Triggered only when the player leaves the a motorhome
plate:
string
Last updated