Page cover image

Client Exports

This page serves to outline and explain the developer exports offered by Zea Developments' z_boot resource. These exports allow you to further integrate z_boot into your server!

Open Boot

This client-side export is intended to enable external interaction for opening the vehicle's boot. It returns a boolean value of true or false, indicating the success of the operation. Please note that this export requires the vehicle's entity handle to be provided as input.

Example usage
local IsSuccess = exports['z_boot']:openBoot(vehicleHandle)

Close Boot

This client-side export is intended to enable external interaction for closing the vehicle's boot. It returns a boolean value of true or false, indicating the success of the operation. Please note that this export requires the vehicle's entity handle to be provided as input.

Example Usage
local IsSuccess = exports['z_boot']:closeBoot(vehicleHandle)

Get Inventory Data

This client-side export is designed to enable developers to access vehicle boot data for manipulation and validation. The export will return a table and an integer upon success; otherwise, it will return nil.

Example Usage
local Items, Slots  = exports['z_boot']:getInventoryData(vehiclePool)

Please be aware that the inventory tab and the safe tab are two separate data stores. You will need to complete the export outlined below in order to access the weapon safe data.


Get Safe Data

This client-side export is designed to enable developers to access vehicle safe data for manipulation and validation. The export will return a table and an integer upon success; otherwise, it will return nil.

Example Usage
local Items, Slots = exports['z_boot']:getSafeData(vehiclePool)

Update Inventory Data

This client-side export is intended to allow developers to update the vehicle inventory data store externally from the built-in interaction system. It will return a boolean value indicating whether the operation was successful or not.

Example Usage
local IsSuccess = exports['z_boot']:updateInventorySlotData(vehicleHandle, slotIndex, {
    itemName = 'example_name',
    itemQuantity = 1,
    itemImage = 'image_example'
})

Update Safe Data

This client-side export is intended to allow developers to update the vehicle safe data store externally from the built-in interaction system. It will return a boolean value indicating whether the operation was successful or not.

Example Usage
local IsSuccess = exports['z_boot']:updateSafeSlotData(vehicleHandle, slotIndex, {
    itemName = 'example_name',
    itemQuantity = 1,
    itemImage = 'image_example'
})

Last updated