Server

Server exports

ApplyVehiclePreset

Applies a preset to a specified vehicle based on the provided preset ID

-- Example
exports.kq_emergency:ApplyVehiclePreset(
    vehicle, -- integer - Entity
    presetId, -- integer - The ID of the preset to apply
    temporary, -- boolean - If the application should not be saved
    usedItem -- boolean - Whether the item was used
)

-- Returns: boolean

RemoveVehiclePreset

Removes any applied emergency loadouts from the vehicle

-- Example
exports.kq_emergency:RemoveVehiclePreset(
    vehicle, -- integer - Entity
    player -- (optional) - integer - Player ID who may receive the Emergency Lights kit item if one was used for installation
) 

-- Returns: boolean

GetPresetById

Retrieves a specific preset based on its ID

GetPresets

Retrieves all saved presets

GetVehiclePresetId

Retrieves the preset ID of the preset which is currently applied onto a vehicle. Returns nil if none is applied

OpenApplyMenu

Opens the "Apply" menu for the specified player. The player must have enough permissions to open the menu for it to open.

Last updated