Integrators and Exports

Functions and their uses that will trigger the script from different scripts.

Custom Inventory For House Stash

If you are using one of the inventories we specified in the script, you can adjust your inventory here.

Config.CustomStash = function(HouseCode, StashNo)
    print(HouseCode) -- Unique House Code (like ID)
    print(StashNo) -- House Stash ID 
end

Custom Wardrobe

If you use a different clothing system, you can integrate the wardrobe here.

Config.CustomWardrobe = function()
    -- Client or Server Event
end

Vehicle Spawned Event

If you use the vehicle key script when the player leaves or enters the garage, you can integrate it here. The example below is for qb-vehiclekeys.

Config.VehicleSpawnAddEvent = function(vehicle, plate)
    -- print(vehicle, plate)
    -- vehicle: vehicle
    -- plate: Vehicle Plate
    -- Usage for plate: plate
    TriggerEvent('vehiclekeys:client:SetOwner', plate)
end

GetPlayerHouses

If you want to access a player's homes through a different script, you can use this function.

-- Client
local playerHouses = exports["0r_houses"]:GetPlayerHouses()

-- Server
local playerHouses = exports["0r_houses"]:GetPlayerHouses(source)
-- Export playerHouses
{
    [1] = {
        ["HousePrice"] = 5600000,
        ["DiscountValue"] = 1,
        ["Tenant"] = No Tenants,
        ["HouseName"] = Vinewood Loft 3,
    },
}

Last updated