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
RegisterNetEvent('sn_properties:client:insideProperty', function(property_id)
end)
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
RegisterNetEvent('sn_properties:client:exitProperty', function(property_id)
end)
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
RegisterNetEvent('sn_properties:client:onZoneEnter', function(property_id, zoneID)
end)
property_id:
number
zoneID:
'inside' | 'outside'
sn_properties:client:onZoneExit
Triggered when player leaves a property this includes the outside zone if there is one
RegisterNetEvent('sn_properties:client:onZoneExit', function(property_id, zoneID)
end)
property_id:
number
zoneID:
'inside' | 'outside'
sn_properties:client:enterMotorhome
Triggered only when the player is inside a house this does not include the outside zone
RegisterNetEvent('sn_properties:client:enterMotorhome', function(plate)
end)
plate:
string
sn_properties:client:exitMotorhome
Triggered only when the player leaves the a motorhome
RegisterNetEvent('sn_properties:client:exitMotorhome', function(plate)
end)
plate:
string
Last updated