FAQ
## hashtag How to do localization
circle-check
A detailed description is available. Editing localization files
## hashtag How can I integrate my fuel?
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## hashtag How can i integrate my vehiclekeys script ?
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## hashtag How can i integrate my target script ?
circle-check
Check modules/target/your_target_name/client.lua and follow other folder and your target documentation
## hashtag How can i integrate my notify script ?
circle-check
Check modules/notify/your_target_name/client.lua and follow other folder and your notify documentation
## hashtag How can i integrate my progress bar script ?
circle-check
Check modules/progressbar/your_target_name/client.lua and follow other folder and your progressbar documentation
## hashtag Where are the config files?
circle-check
All config files are inside config/ folder
## hashtag How do I change the truck model?
0r-trucker/config/main.lua
Copy
0r-trucker/client/cl_task.lua:452
Copy

