It returns the property the player is inside (shell, IPL or MLO). If the player is not inside one, it also checks the MLO yards and MLO zones the player is standing in.
Return Value
number | nil The property ID, or nil if the player is not in a property.
Example
lua
local propertyId = exports.nolag_properties:GetCurrentPropertyId()if propertyId then print(('Player is in property %s'):format(propertyId))end