Server Exports
getAllProperties
Get all the properties
exports.sn_properties:getAllProperties()Return:
property:
property{tables}id:
numberlabel:
stringzone:
stringcoords:
{x: number, y: number, z: number, w: number}owner?:
stringisOwner?:
booleantype:
'mlo' | 'shell' | 'ipl' | 'motorhome'price:
numberkeys:
tableidentifier:
furnish:
booleandoors:
booleanstorage:
booleangarage:
booleanadmin:
boolean
wall_color?:
{r:number, g: number, b: number}
getPlayerProperties
Get all the properties a player owns
exports.sn_properties:getPlayerProperties(source:number OR identifier:string)Return:
property:
property{tables}id:
numberlabel:
stringzone:
stringcoords:
{x: number, y: number, z: number, w: number}owner?:
stringisOwner?:
booleantype:
'mlo' | 'shell' | 'ipl' | 'motorhome'price:
numberkeys:
tableidentifier:
furnish:
booleandoors:
booleanstorage:
booleangarage:
booleanadmin:
boolean
wall_color?:
{r:number, g: number, b: number}
addKeyholder
add a keyholder to a property
exports.sn_properties:addKeyholder(identifier, propertyId, perms)identifier: source:number OR identifier:string
propertyId: number
perms: table
doors:
booleanstorage:
booleangarage:
booleanadmin:
boolean
removeKeyholder
remove a keyholder from a property
exports.sn_properties:removeKeyholder(identifier, propertyId)identifier: source:number OR identifier:string
propertyId: number
editKeyholder
similar to add it will override the players house perms with the given ones
exports.sn_properties:addKeyholder(identifier, propertyId, perms)identifier: source:number OR identifier:string
propertyId: number
perms: table
doors:
booleanstorage:
booleangarage:
booleanadmin:
boolean
Last updated