exports / triggers
Client Exports / Triggers
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.
exports.brutal_housing:getUserHouses()
List of houses owned by the user. (for example: "H245")
TriggerEvent("brutal_housing:client:addFurniture", PropertyID, Propname)
Add a furniture item inside the specified property. PropertyID – The unique identifier of the property (e.g. "H245"). Propname – The prop model name of the furniture item to spawn (e.g. "prop_yacht_seat_02").
Server Triggers
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
