Jump to content

A working Fuel System?


samt2497

Recommended Posts

hmmm i had this problem with cvehiclefuel thats why i use slrfuel because i can add the garages in the .lua file the fuel gauge works fine

im currently working in LuaEdit, il open up cvehiclefuel, and have a look

*UPDATE*

i did a debug and this beauty popped up

WARNING: cvehiclefuel_c.lua: Bad argument @ 'getElementData' - Line: 60

WARNING: cvehiclefuel_c.lua: Bad argument @ 'killTimer' - Line: 95

so we now have a base to work on :D

*ANOTHER UPDATE*

function isTimer(timer)
local timers = getTimers()
for k,v in ipairs(timers) do
	if (v == timer) then
		return true
	end
end
return false
end

i added this to the bottom of cvehiclefuel_c.lua it cleared the Bad argument @ 'killTimer' - Line: 95

still looking @ getElementData

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...