Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit a80d538

Browse files
committed
Update README.md
1 parent 935cb43 commit a80d538

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,17 @@ Package : https://github.com/Sna-aaa/qb-sna-fuel
3232

3333
1) Remove any fuel or electricity script that you may have including LegacyFuel, ps-fuel etc
3434

35-
2) Replace all occurences of "LegacyFuel" by "qb-sna-fuel" (or wathever your directory name is) in all your server resources exports
35+
2) Replace all occurences of "LegacyFuel" by "qb-sna-fuel" (or wathever your directory name is) in all your Legacyfuel compatible resources
36+
2a) Look in all your resources the use of native GetVehicleFuelLevel for non Legacyfuel compatible resources
37+
When this native is found it must be replaced by the export like this
38+
```lua
39+
exports['qb-sna-fuel']:GetFuel(vehicle)
40+
```
41+
2b) Look in all your resources the use of native SetVehicleFuelLevel for non Legacyfuel compatible resources
42+
When this native is found it must be replaced by the export like this
43+
```lua
44+
exports['qb-sna-fuel']:SetFuel(vehicle, fuelpercentage)
45+
```
3646

3747
3) If you want to use the auto charging function for electric vehicles in garage:
3848
- Import the database.sql in your database

0 commit comments

Comments
 (0)