FAQ

chevron-rightHow to do localizationhashtag

0r-towtruck/config/main.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.

chevron-rightHow to create a new variantshashtag

0r-towtruck/config/npc.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
},
chevron-rightHow can i integrate my inventory ?hashtag

Scripts

  • Status

  • qb-inventory — Supported

  • ox_inventory — Supported

  • ps-inventory — Supported but not tested

  • tgiann-inventory — Supported but not tested

  • codem-inventory — Supported 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.

chevron-rightHow can i integrate my target script ?hashtag

Scripts

  • Status

  • ox_target — Supported

  • qb-target — Supported

  • sleepless_interact — Supported but not tested

  • drawtext — Supported

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.

chevron-rightHow can i integrate my vehiclekeys script ?hashtag

Scripts

  • Status

  • qb-vehiclekeys — Supported

  • qbx_vehiclekeys — Supported

  • 0r-vehiclekeys — Supported

  • okokGarage — Supported but not tested

  • wasabi_carlock — Supported but not tested

  • mk_vehiclekeys — Supported but not tested

  • cd_garage — Supported but not tested

  • Renewed-Vehiclekeys — Supported but not tested

  • MrNewbVehicleKeys — Supported 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.

chevron-rightHow can i integrate my fuel script ?hashtag

Scripts

  • Sta

  • LegacyFuel — Supported

  • Renewed-Fuel — Supported but not tested

  • cdn-fuel — Supported but not tested

  • esx-sna-fuel — Supported but not tested

  • lc_fuel — Supported but not tested

  • okokGasStation — Supported but not tested

  • ox_fuel — Supported but not tested

  • ps-fuel — Supported but not tested

  • ti-fuel — Supported but not tested

  • x-fuel — Supported 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.