Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nonefivem.com/llms.txt

Use this file to discover all available pages before exploring further.

Types


Door

FieldTypeDescriptionRequired
coordsvector3coordstrue
hnumberheadingtrue

Ipl Building

FieldTypeDescriptionRequired
coordsvector3Ipl coordstrue
doorsdoor[]Inside door coordstrue
realestateReal Estate DataThe data required to be listed in the real estate menufalse
interactionsfunction[]Building interactionsfalse
radiusnumberFurniture Editor radius based on coords (default 20)false
onEnterfunctionFunction to be executed after the player enters the buildingfalse
onExitfunctionFunction to be executed after the player exits the buildingfalse

Examples


Create building_name.lua inside no-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
}