Skip to content

FAQ

How to do localization #

lua
Locale = 'en', -- You specify the primary language of your script. (Supported Locales: en)

If the language you are using is not supported by the script, you can copy the en.json file and edit its contents for your own language. Then, save the file with a name that includes your language abbreviation (e.g., en, tr) and enter the file name you set in the config.

You can also send this translation file you have set up to the user named No.1 (vezironi) on Discord, and your translation file will be added to the script in the next update.

How to create a new variants#

lua
[1] = {
    vehicle = {
        coords = vec4(1332.75, 602.34, 79.16, 324.17), -- Vehicle coords
        model = "Baller", -- Vehicle model
        hash = `baller`, -- Vehicle hash
        bodyHealth = 200, -- Vehicle engine healt -4000 - 1000 (optional)
        engineHealth = 200, -- Vehicle engine healt 0 - 1000 (optional)
        doors = { -- Opened Doors (optional)
            [0] = true, -- Driver Side Left Door
            [1] = true, -- Driver Side Right Door
            [2] = true, -- Passenger Side Left Door
            [3] = true, -- Passenger Side Right Door
            [4] = true, -- Bonnet
            [5] = true, -- Boot
        },
        tyres = { -- Flat Tires (optional)
            [0] = true, -- Driver Left
            [1] = true, -- Driver Right
            [2] = true, -- Passenger Left
            [3] = true, -- Passenger Right
        },
        brokenDoors ={ -- Broken Doors (optional)
            [0] = true, -- Driver Side Left Door
            [1] = true, -- Driver Side Right Door
            [2] = true, -- Passenger Side Left Door
            [3] = true, -- Passenger Side Right Door
            [4] = true, -- Bonnet
            [5] = true, -- Boot
        },
        locked = 2 -- Locked Doors (optional)
    },
    ped = {
        coords = vec4(1335.41, 602.99, 79.21, 16.69), --  Ped Coords
        model = "s_m_y_ammucity_01", -- Ped model
        hash = `s_m_y_ammucity_01`, -- Ped hash
        scenario = "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", -- Ped scenario (optional)
    },
    fullaname = "Unknown", -- Ped name
    reason = 'Engine failure', -- Reason
},

How can i integrate my inventory ? #

ScriptsStatus
qb-inventorySupported
ox_inventorySupported
ps-inventorySupported but not tested
tgiann-inventorySupported but not tested
codem-inventorySupported but not tested

As long as you do not configure the script differently, if you are using a script supported by the script, it will automatically detect it and configure itself accordingly.

Copy and paste any script file from 0r-towtruck/modules/inventory/, then rename the folder to the name of the script you want. You can then integrate your script by looking at the other modules. It has a very modular and understandable file structure.

How can i integrate my target script ? #

ScriptsStatus
ox_targetSupported
qb-targetSupported
sleepless_interactSupported but not tested
drawtextSupported

As long as you do not configure the script differently, if you are using a script supported by the script, it will automatically detect it and configure itself accordingly.

Copy and paste any script file from 0r-towtruck/modules/target/, then rename the folder to the name of the script you want. You can then integrate your script by looking at the other modules. It has a very modular and understandable file structure.

How can i integrate my vehiclekeys script ? #

ScriptsStatus
qb-vehiclekeysSupported
qbx_vehiclekeysSupported
0r-vehiclekeysSupported
okokGarageSupported but not tested
wasabi_carlockSupported but not tested
mk_vehiclekeysSupported but not tested
cd_garageSupported but not tested
Renewed-VehiclekeysSupported but not tested
MrNewbVehicleKeysSupported but not tested

As long as you do not configure the script differently, if you are using a script supported by the script, it will automatically detect it and configure itself accordingly.

Copy and paste any script file from 0r-towtruck/modules/vehiclekeys/, then rename the folder to the name of the script you want. You can then integrate your script by looking at the other modules. It has a very modular and understandable file structure.

How can i integrate my fuel script ? #

ScriptsSta
LegacyFuelSupported
Renewed-FuelSupported but not tested
cdn-fuelSupported but not tested
esx-sna-fuelSupported but not tested
lc_fuelSupported but not tested
okokGasStationSupported but not tested
ox_fuelSupported but not tested
ps-fuelSupported but not tested
ti-fuelSupported but not tested
x-fuelSupported but not tested

As long as you do not configure the script differently, if you are using a script supported by the script, it will automatically detect it and configure itself accordingly.

Copy and paste any script file from 0r-towtruck/modules/fuel/, then rename the folder to the name of the script you want. You can then integrate your script by looking at the other modules. It has a very modular and understandable file structure.