> For the complete documentation index, see [llms.txt](https://faze-development.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faze-development.gitbook.io/docs/resources/fd-carrental/functions/client/setvehiclefuel.md).

# SetVehicleFuel

You can change LegacyFuel export if you use another fuel system.

```lua
FD.SetVehicleFuel = function(vehicle, fuel)
    if Config.Fuel == 'legacy' then
        return exports["LegacyFuel"]:SetFuel(vehicle, fuel)
    else
        return SetVehicleFuelLevel(vehicle, fuel + 0.0)
    end
end
```
