Agency Docs
QBESXStandalone

Agency-Housing 导出 & API

基于数据库的 FiveM 住房系统,自动识别 ESX、QBCore 与 QBox。房屋在游戏内通过液态玻璃风格的创建界面完成,而不是写配置文件:在你所站的位置放置入口,从空中标出地界,选择 18.

v1.79.0付费5 页面

01Client Exports

导出说明
IsInsideHouse()Returns true while the player is inside a house.
GetCurrentHouse()The house the player is currently inside, or nil.
LeaveHouse()Puts the player back outside through the entrance.
GetHouseAtPoint(coords)The first house whose property border owns this ground.
GetHousesAtPoint(coords)Every house owning this ground, for overlapping plots such as an apartment block.
GetCurrentProperty()The plot the player is standing on right now, or nil.
IsOnProperty(houseId)Whether the player stands on the property of that house.
GetHouseZone(houseId)The stored border shape of a house.
GetAccent()The accent colour the player picked in Housing > Settings.

02Server Exports

导出说明
GetHouses()Every house on the server, keyed by id.
GetPlayerHouses(source)The houses that player owns.
HasHouseAccess(source, houseId)Whether that player owns the house or holds a key to it.
GetHouseAtPoint(coords)The first house whose property border owns this ground.
GetHousesAtPoint(coords)Every house owning this ground, for overlapping plots.
GetHouseZone(houseId)The stored border shape of a house.

03事件

名称说明
agency-housing:client:enteredZoneClientFires with (houseId, house) when the player steps onto a property, so a job or robbery script does not have to poll.
agency-housing:client:leftZoneClientFires with (houseId, house) when the player leaves a property.

看完本页仍未解决?接下来由我们的支持团队接手。