For the complete documentation index, see llms.txt. This page is also available as Markdown.

FAQ

How to do localization


How can I integrate my fuel?

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

How can i integrate my vehiclekeys script ?


How can i integrate my target script ?


How can i integrate my notify script ?


How can i integrate my progress bar script ?


Where are the config files?


How do I change the truck model?

Last updated