exports / triggers
Client Exports
Export
Result
exports.brutal_housing:hasKeyToHouse(propertyID)
Returns wether the player have key to the property or not.
exports.brutal_housing:getPropertyID()
Returns the property id the player in. (Like "H245" or "G34" or nil)
exports.brutal_housing:spawnInFavProperty()
Spawns the player in their favorite property. Can be used after log in for example. Returns true or false whether it was successful or not.
exports.brutal_housing:possibleToAddMLODoorlock(propertyID, coords)
Returns true or false wether the coord is inside of the property's polyzone or not.
Server Triggers
Export
Result
TriggerEvent('brutal_housing:server:hasKeyToHouse', playerId, propertyID, function(hasKey) print('haskey:', hasKey) end)
Returs wether the player have key to the house or not.
Last updated
