Adding IPL Building
Types
Door
| Field | Type | Description | Required |
|---|---|---|---|
| coords | vector3 | coords | true |
| h | number | heading | true |
Ipl Building
| Field | Type | Description | Required |
|---|---|---|---|
| coords | vector3 | Ipl coords | true |
| doors | door[] | Inside door coords | true |
| realestate | Real Estate Data | The data required to be listed in the real estate menu | false |
| interactions | function[] | Building interactions | false |
| radius | number | Furniture Editor radius based on coords (default 20) | false |
| onEnter | function | Function to be executed after the player enters the building | false |
| onExit | function | Function to be executed after the player exits the building | false |
Examples
Create
building_name.luainsideno-housing/config/shared/buildings/ipl
Config.Buildings.Ipl.building_name = {
coords = vector3(1093.6, -3196.6, -38.99) -- building coords,
doors = { -- building doors
{coords = vector3(1088.674, -3187.672, -38.99), h = 176.64},
{coords = vector3(1103.377, -3195.934, -38.99), h = 91.46}
},
realestate = {
label = "Building Label",
price = 13000
},
onEnter = function(ctx)
end,
onExit = function()
end
}