Client
Client exports
GetVehiclePresetId
Retrieves the preset ID of the preset which is currently applied onto a vehicle. Returns nil
if none is applied
-- Example
exports.kq_emergency:GetVehiclePresetId(
vehicle -- integer - Entity
)
-- Returns: integer - Preset ID
SetSirenMode
Sets the mode of the siren audio
-- Example
exports.kq_emergency:SetSirenMode(
vehicle, -- integer - Entity
index -- integer - The siren mode index
)
-- Returns: void
SetLightsMode
Sets the mode of the siren lights
-- Example
exports.kq_emergency:SetLightsMode(
vehicle, -- integer - Entity
index -- integer - The siren mode index
)
-- Returns: void
RefreshVehicle
Refreshes/initializes the client vehicle object. This can be used to instantly initialize and update a newly spawned vehicle
-- Example
exports.kq_emergency:RefreshVehicle(
vehicle -- integer - Entity
)
-- Returns: void
DeleteVehicle
Deletes the client vehicle object, and deletes all data and props associated with it.
Beware: If the vehicle still exists after calling this export, it will be picked up by the automatic vehicle detection in the next cycle. So make sure to actually delete the vehicle entity yourself right after if your goal is to remove the props attached to it
-- Example
exports.kq_emergency:DeleteVehicle(
vehicle -- integer - Entity
)
-- Returns: void
Last updated