Jump to content

A working Fuel System?


samt2497

Recommended Posts

Posted

i myself use slrfuel on my server and it works as well as it can, what errors are you getting? did you restart the server after adding it?

Posted

I have the same problem. they doesn't work, no errors. If I starting slrfuel then is nothing happening and cvehiclefuel works only if someone is tanking then is it to everybody.. and if you drive then it goes to 99 and back to 100.. for everyone :S

Posted

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

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...