questionFAQ

How to do localization

circle-check

How can I integrate my fuel?

circle-check
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 ?

circle-check

How can i integrate my target script ?

circle-check

How can i integrate my notify script ?

circle-check

How can i integrate my progress bar script ?

circle-check

Where are the config files?

circle-check

How do I change the truck model?

Last updated