Skip to content

Instantly share code, notes, and snippets.

View TanguyOrtegat's full-sized avatar
🏠
Working from home

JagerBom TanguyOrtegat

🏠
Working from home
View GitHub Profile
{
"categories": null,
"filters": [
{
"displayName": "category",
"filterField": "category_filter",
"displayMaxValues": "8",
"fieldType": "checkbox",
"selectedMinRangeVal": null,
"selectedMaxRangeVal": null,
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:GetSharedObjectFromESX', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
local bonetable = {"chassis", "chassis_lowlod", "chassis_dummy", "seat_dside_f", "seat_dside_r", "seat_dside_r1", "seat_dside_r2", "seat_dside_r3", "seat_dside_r4", "seat_dside_r5", "seat_dside_r6", "seat_dside_r7", "seat_pside_f", "seat_pside_r", "seat_pside_r1", "seat_pside_r2", "seat_pside_r3", "seat_pside_r4", "seat_pside_r5", "seat_pside_r6", "seat_pside_r7", "window_lf1", "window_lf2", "window_lf3", "window_rf1", "window_rf2", "window_rf3", "window_lr1", "window_lr2", "window_lr3", "window_rr1", "window_rr2", "window_rr3", "door_dside_f", "door_dside_r", "door_pside_f", "door_pside_r", "handle_dside_f", "handle_dside_r", "handle_pside_f", "handle_pside_r", "wheel_lf", "wheel_rf", "wheel_lm1", "wheel_rm1", "wheel_lm2", "wheel_rm2", "wheel_lm3", "wheel_rm3", "wheel_lr", "wheel_rr", "suspension_lf", "suspension_rf", "suspension_lm", "suspensio
[{"version":"1.0.0", "toolname":"Structured Intake Tool"}]
local setGear = GetHashKey('SET_VEHICLE_CURRENT_GEAR') & 0xFFFFFFFF
local function SetVehicleCurrentGear(veh, gear)
Citizen.InvokeNative(setGear, veh, gear)
end
local nextGear = GetHashKey('SET_VEHICLE_NEXT_GEAR') & 0xFFFFFFFF
local function SetVehicleNextGear(veh, gear)
Citizen.InvokeNative(nextGear, veh, gear)
end