Integration

Set Vehicle Fuel

Give Key

Path: ak47_housing/modules/garage/client/customizable.lua Set your export or trigger here to give vehicle key

Garage Triggers

Path: ak47_housing/modules/garage/client/customizable.lua

ZSX_Multicharacter

-- add inside Characters.ConvertProperties function
if GetResourceState('ak47_housing') == 'started' then
        local identifier = Config.Prefix..''..charId..':'..identifier
        local query = "SELECT * FROM `ak47_housing` WHERE `owner` = ?"
        local response = MySQL.query.await(query, {identifier})
        
        if response and response[1] then
            for k,v in ipairs(response) do
                local coords = json.decode(v.enter)
                properties['house_'..v.id] = {
                    name = 'house_'..v.id,
                    type = "property",
                    label = 'House:'..v.id,
                    coords = vector3(coords.x, coords.y, coords.z),
                }
            end
        end
    end

Last updated