Garage Types

There are currently three garage types that you can create in ti_garages All config is stored in the garages.lua file.

  • Menu - Simple, uses context style UI's for all interactions.

  • NUI - Using NUI and a display vehicle, emulates a "showroom" style garage. - Vehicles can be repaired and retrieved from another storage or impound here.

  • Zone - Persistent parking zone. Any player vehicle parked inside of this zone will have its location saved, and restored on server restarts (etc).

garages.pillboxHillMenu = {
    label = "Pillbox Hill Menu",   -- Label, for UI interactions
    typeof = "menu",               -- Garage type  
    capacity = 1,                  -- Max vehicle capacity (-1 for no max)

    -- Blip options
    blip = {
        label = "Pillbox Hill Menu",
        position = vector3(236.55,-739.18,30.82),
        sprite = 357,
        color = 57,
        alpha = 255,
        scale = 0.7,
        display = 2,
        highDetail = true,
        shortRange = true
    },

    -- Class restrictions.
    -- For more information, see: https://docs.fivem.net/natives/?_0x29439776AAA00A62
    -- For no restrictions, use -1
    classRestrictions = {
        0,1,2,3,4
    },

    -- OPTIONAL
    -- Restrict access to these character identifiers
    characterRestrictions = {
        'ABC:123'
    },

    -- OPTIONAL
    -- Restrict access to these job names
    -- jobName = minRank
    jobRestrictions = {
        police = 1
    },

    -- OPTIONAL
    -- Restrict access to these group names
    -- groupName = minRank
    groupRestrictions = {
        ballas = 2
    },

    -- Locations
    locations = {
        -- Location to spawn withdrawn vehicles
        vehSpawn = {
            position = vector3(236.87,-739.05,30.82),
            heading = 69.70
        },

        -- Location of the interaction menu while on foot
        pedMenu = {
            position = vector3(236.87,-739.05,30.82),
            interactDist = 2.0,
        },

        -- Location of the interaction menu while driving a vehicle
        vehMenu = {
            position = vector3(236.87,-739.05,30.42),
            interactDist = 2.0,
        }
    }
}

NUI

garages.pillboxHillShowroom = {
    label = "Pillbox Hill Showroom",   -- Label, for UI interactions
    typeof = "nui",                    -- Garage type  
    capacity = 5,                      -- Max vehicle capacity (-1 for no max)
    interior = 285953,                 -- (OPTIONAL) Interior ID to load 

    -- Blip options
    blip = {
        label = "Pillbox Hill Showroom",
        position = vector3(241.60,-756.66,30.83),
        sprite = 357,
        color = 57,
        alpha = 255,
        scale = 0.7,
        display = 2,
        highDetail = true,
        shortRange = true
    },

    -- Class restrictions.
    -- For more information, see: https://docs.fivem.net/natives/?_0x29439776AAA00A62
    -- For no restrictions, use -1
    classRestrictions = {
        -1
    },

    -- OPTIONAL
    -- Restrict access to these character identifiers
    characterRestrictions = false,

    -- OPTIONAL
    -- Restrict access to these job names
    -- jobName = minRank
    jobRestrictions = false,

    -- OPTIONAL
    -- Restrict access to these group names
    -- groupName = minRank
    groupRestrictions = false,
    
    
    -- Locations
    locations = {
        -- Location to spawn withdrawn vehicles
        vehSpawn = {
            position = vector3(241.60,-756.66,30.83),
            heading = 256
        },

        -- Location of the interaction menu while on foot
        pedMenu = {
            position = vector3(241.60,-756.66,30.83),
            interactDist = 2.0,
        },

        -- Location of the interaction menu while driving a vehicle
        vehMenu = {
            position = vector3(241.60,-756.66,30.83),
            interactDist = 2.0,
        },

        -- Start position of the display/showroom camera
        showroomCam = {
            position = vector3(-1332.21,146.94,-96.87)
        }, 

        -- Position of the display/showroom vehicle
        showroomVeh = {
            position = vector3(-1327.08,142.80,-99.19),
            heading = 137.03
        }
    }
}

Zone

garages.pillboxHillZone = {
    label = "Pillbox Hill Zone",   -- Label, for UI interactions
    typeof = "zone",               -- Garage type
    capacity = 1,                  -- Max vehicle capacity (-1 for no max)

    -- Blip options
    blip = { 
        label = "Pillbox Hill Zone",                   
        position = vector3(223.73,-787.48,30.75),
        sprite = 357,
        color = 57,
        alpha = 255,
        scale = 0.7,
        display = 2,
        highDetail = true,
        shortRange = true
    },

    -- Class restrictions.
    -- For more information, see: https://docs.fivem.net/natives/?_0x29439776AAA00A62
    -- For no restrictions, use -1
    classRestrictions = {
        -1
    },

    -- OPTIONAL
    -- Restrict access to these character identifiers
    characterRestrictions = false,

    -- OPTIONAL
    -- Restrict access to these job names
    -- jobName = minRank
    jobRestrictions = false,

    -- OPTIONAL
    -- Restrict access to these group names
    -- groupName = minRank
    groupRestrictions = false,

    -- Polyzone definition.    
    zone = {
        -- Table of vector3 points.
        points = {
            vector3(200.01,-805.80,30.75),
            vector3(218.77,-756.46,30.75),
            vector3(262.78,-769.80,30.75),
            vector3(257.55,-784.84,30.75),
            vector3(252.84,-783.64,30.75),
            vector3(239.86,-820.42,30.75)
        },

        -- Max "height" of polyzone.
        height = 3.0
    }
}

Last updated