[Discontinued] Advanced Car Hud System (9/14/2017) v2

what is SET_PLAYER_VEHICLE_DAMAGE_MODIFIER doing? I think this could be the function u are searching for… But I’m really not sure :smiley:

Complete off-topic but ehm… any chance you could explain to me how to make a script which will trigger an event to enable the braking lights on a vehicle automatically whenever they’re not moving with the engine running? and another script on how to leave the engine running unless turned off?

Thanks so much =)

If you could also incorporate thers fuel mod that would be awesome. So we could see fuel levels

3 Likes

It is possible to let only the km/h Please?

yes just remove the others functions :slight_smile:

@UltraGAMING, if i don’t make any stupid mistake, that it.

Only kmh text + panel.


Replace all line from carhud.lua with:

-- carhud.lua
function drawTxt(x,y ,width,height,scale, text, r,g,b,a)
    SetTextFont(4)
    SetTextProportional(0)
    SetTextScale(scale, scale)
    SetTextColour(r, g, b, a)
    SetTextDropShadow(0, 0, 0, 0,255)
    SetTextEdge(2, 0, 0, 0, 255)
    SetTextDropShadow()
    SetTextOutline()
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x - width/2, y - height/2 + 0.005)
end
function drawRct(x,y,width,height,r,g,b,a)
    DrawRect(x + width/2, y + height/2, width, height, r, g, b, a)
end
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1)
        if(IsPedInAnyVehicle(GetPlayerPed(-1), false))then
            local kmh = GetEntitySpeed(GetVehiclePedIsIn(GetPlayerPed(-1), false)) * 3.6
            drawRct(0.11, 0.932, 0.046,0.03,0,0,0,100)
            drawTxt(0.61, 1.42, 1.0,1.0,0.64 , "~w~" .. math.ceil(kmh), 255, 255, 255, 255)
            drawTxt(0.633, 1.432, 1.0,1.0,0.4, "~w~ km/h", 255, 255, 255, 255)
        end
    end
end)

Thanks a lot ! But where Im gonna supposed to put this code?

i did but my server block on Initializing session …

Works perfectly thanks a lot dude !

1 Like

Hi, can you add Numberplate plz ?

how can i move this whole UI up just a little bit. great job BTW!! works great

the vehicle damage is broken right?

Seems broken. Any updates on this? Is it because of FXServer?

why is it that its almost untill you make your car sideways why cant it be like around something like department of justice they had a few bugs but then they got it fixed cause before it goes yellow is when it starts smoking which in gta5 standards is pretty much when your car is dead

im still using cfx server

How do I install it to a fivem server? help

seriously?!? install it like any other resource its not client sided!

where did you get all the ui’s 1 through 10 can you list all the ui’s i want to remove the park mode and the damage stuff like the lines when they fill up each time you damage your car i want to edit it to be like dojrp

Did anyone figure out how to change the damage modifier

Did anyone figure out how to change the damage modifier


|EDIT|
If you are looking to multiply the damage check out wk_damage resource and that will do the trick. It works great with this mod! Thanks for the release!

I had to download a seperate damage handler to make it work. The parking bar doesnt work. It does work for indication but not very well. I hope someone can find a fix soon