FAQ

chevron-right## hashtag How to do localizationhashtag

circle-check

A detailed description is available. Editing localization files

chevron-right## hashtag How can I integrate my fuel?hashtag

circle-check

Check modules/fuel/your_fuel_name/client.lua and follow the inventory documentation

Copy

local Config = require 'config.main'

local resourceName = "your_fuel_name"
local configValue = Config.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end

Fuel = Fuel or {}

---@diagnostic disable-next-line: duplicate-set-field
Fuel.GetFuel = function(vehicle)
    if not DoesEntityExist(vehicle) then return 0.0 end
    return exports['your_fuel_name']:GetFuel(vehicle)
end

---@diagnostic disable-next-line: duplicate-set-field
Fuel.SetFuel = function(vehicle, fuel, type)
    if not DoesEntityExist(vehicle) then return end
    return exports['your_fuel_name']:SetFuel(vehicle, fuel)
end
chevron-right## hashtag How can i integrate my vehiclekeys script ?hashtag

circle-check

Check modules/vehiclekeys/your_vehiclekeys_name/client.lua and follow the vehicle keys documentation

Copy

local Config = require 'config.main'

local resourceName = "your_vehiclekeys_name"
local configValue = Config.VehicleKey
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end

VehicleKey = VehicleKey or {}

---@diagnostic disable-next-line: duplicate-set-field
VehicleKey.GiveKeys = function(vehicle, plate)
    if not vehicle and not DoesEntityExist(vehicle) then return false end
    return exports["your_vehiclekeys_name"]:AddKey(vehicle)
end

---@diagnostic disable-next-line: duplicate-set-field
VehicleKey.RemoveKeys = function(vehicle, plate)
    if not vehicle and not DoesEntityExist(vehicle) then return false end
    return exports["your_vehiclekeys_name"]:RemoveKey(vehicle)
end
chevron-right## hashtag How can i integrate my target script ?hashtag

circle-check

Check modules/target/your_target_name/client.lua and follow other folder and your target documentation

chevron-right## hashtag How can i integrate my notify script ?hashtag

circle-check

Check modules/notify/your_target_name/client.lua and follow other folder and your notify documentation

chevron-right## hashtag How can i integrate my progress bar script ?hashtag

circle-check

Check modules/progressbar/your_target_name/client.lua and follow other folder and your progressbar documentation

chevron-right## hashtag Where are the config files?hashtag

circle-check

All config files are inside config/ folder

chevron-right## hashtag How do I change the truck model?hashtag

0r-trucker/config/main.lua

Copy

0r-trucker/client/cl_task.lua:452

Copy