Sna-aaa / qb-sna-fuel

Fuel script that cover all vehicles, fuel, electric, air, sea
23 stars 11 forks source link

Fuel Level Inoperational #10

Open Leveecius88 opened 1 year ago

Leveecius88 commented 1 year ago

I'm finding the Fuel level isn't working on my UI, but when I looked further into it, I'm finding the SQL file I put into the DB, that you have in the files, it adds the table datetimein, but that table is empty on every vehicle. I'm assuming this is why as going through the lua's, it's calling for a value but there is no value in there to get. So I'm wondering if there is an issue with it writing and recalling information to the database.

Sna-aaa commented 1 year ago

The field datetimein is only used for electric vehicles that need to charge when in the garage, not for fuel display at all Generally if you have problem showing the fuel level (always at 50%) it is because your ui use the standard native getvehiclefuellevel that needs to be replaced by the exports in the readme