FAQ

chevron-rightHow to do localizationhashtag

A detailed description is available. Editing localization files

chevron-rightHow can I integrate my fuel?hashtag

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-rightHow can i integrate my vehiclekeys script ?hashtag

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-rightHow can i integrate my target script ?hashtag

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

chevron-rightHow can i integrate my notify script ?hashtag

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

chevron-rightHow can i integrate my progress bar script ?hashtag

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

chevron-rightWhere are the config files?hashtag

All config files are inside config/ folder

chevron-rightHow do I change the truck model?hashtag

File: 0r-trucker/config/main.lua

Copy

File: 0r-trucker/client/cl_task.lua (around line 452)

Copy