# FAQ

## How to do localization <a href="#how-to-do-localization" id="how-to-do-localization"></a>

{% hint style="success" %}
A detailed description is available. [editing-localization-files](https://docs.0resmon.org/0resmon/0r-resources/0r-forklift-operator/editing-localization-files "mention")
{% endhint %}

***

## How can I integrate my fuel? <a href="#how-can-i-integrate-my-inventory" id="how-can-i-integrate-my-inventory"></a>

{% hint style="success" %}
Check `modules/fuel/your_fuel_name/client.lua` and follow the inventory documentation
{% endhint %}

```lua
---@diagnostic disable: duplicate-set-field
local resourceName = "your_fuel_folder_name"
if GetResourceState(resourceName) == 'missing' then return end
Fuel = Fuel or {}

---@description Returns the name of the active fuel resource.
---@return string
Fuel.GetResourceName = function()
    return resourceName
end

---@description Returns the current fuel level of a vehicle.
---@param vehicle number The vehicle entity handle.
---@return number The vehicle fuel level.
Fuel.GetFuel = function(vehicle)
    if not DoesEntityExist(vehicle) then return 0.0 end
    return exports['your_fuel_folder_name']:GetFuel(vehicle)
end

---@description Sets the fuel level of a vehicle.
---@param vehicle number The vehicle entity handle.
---@param fuel number The fuel level to assign.
---@param type? string The fuel type, used only in ti_fuel. (default: RON91)
---@return nil
Fuel.SetFuel = function(vehicle, fuel, type)
    if not DoesEntityExist(vehicle) then return end
    exports['your_fuel_folder_name']:SetFuel(vehicle, fuel)
end

return Fuel
```

***

## How can i integrate my vehiclekeys script ? <a href="#how-can-i-integrate-my-target-script" id="how-can-i-integrate-my-target-script"></a>

{% hint style="success" %}
Check `modules/vehiclekeys/your_vehiclekey_name/client.lua` and follow the vehicle keys documentation
{% endhint %}

```lua
---@diagnostic disable: duplicate-set-field
local resourceName = "your_vehiclkey_folder_name"
if GetResourceState(resourceName) == 'missing' then return end

VehicleKey = VehicleKey or {}

---Gives the player (self) the keys of the specified vehicle.
---@param vehicle number The vehicle entity handle.
---@param plate? string The plate of the vehicle.
---@return nil
VehicleKey.GiveKeys = function(vehicle, plate)
    assert(vehicle, "vehicle is nil")
    assert(DoesEntityExist(vehicle), "vehicle does not exist")
    if not plate then plate = GetVehicleNumberPlateText(vehicle) end

    -- Your Give Key Event/Export
end

-- TODO: Test, documentation of the script is missing

---Removes the keys of the specified vehicle from the player (self).
---@param vehicle number The vehicle entity handle.
---@param plate? string The plate of the vehicle.
---@return nil
VehicleKey.RemoveKeys = function(vehicle, plate)
    assert(vehicle, "vehicle is nil")
    assert(DoesEntityExist(vehicle), "vehicle does not exist")

    if not plate then plate = GetVehicleNumberPlateText(vehicle) end

    -- Your Remove Key Event/Export
end

VehicleKey.GetResourceName = function()
    return resourceName
end

return VehicleKey
```

***

## How can i integrate my target script ? <a href="#how-can-i-integrate-my-target-script" id="how-can-i-integrate-my-target-script"></a>

{% hint style="success" %}
Check `modules/target/your_target_name/client.lua` and follow other folder and your target documentation
{% endhint %}

***

## How can i integrate my notify script ? <a href="#how-can-i-integrate-my-target-script" id="how-can-i-integrate-my-target-script"></a>

{% hint style="success" %}
Check `modules/notify/your_target_name/client.lua` and follow other folder and your notify documentation
{% endhint %}

***

## How can i integrate my progress bar script ? <a href="#how-can-i-integrate-my-target-script" id="how-can-i-integrate-my-target-script"></a>

{% hint style="success" %}
Check `modules/progressbar/your_target_name/client.lua` and follow other folder and your progressbar documentation
{% endhint %}

***

## Where are the config files?

{% hint style="success" %}
All config files are inside `config/` folder
{% endhint %}
