[EN/FR] Broken cars

Hi everyone

Excuse me for my “frenglish” ^^ i try my best for post this video here.

I got this problem on FiveM and i don’t know if someone got the same.

Some people get this probleme too ? Please tell me how i can fix this, thanks.

(Si des “Frenchy” passent par la, je suis a votre écoute pour toute solution ou autres)

Problems with vehicules if people don’t have Windows 10

Hello.

I have found the origin of the issue on my server (Pig Army).
I was on a whitelisted job and the issue kept happening.
I switched to unemployed, issue still hapenning, and then switched to any other job (fisherman, woodman, wineman, etc) and the issue was fixed.

I don’t know why yet and i’ll be looking into it but it comes from job selection (on my server again)

Hey, thanks for asking.

Im on Windows 7 effectively and i can’t switch to W10 :confused:

I try to switch my job to : “unemployed at fisherman, fisherman at unemployed and unemployed at repairman” and i have the same problem.

i don’t know how to fix this at the moment but maybe someone have a solution for W7 users. Just wait someone for save us ^^

On Windows 8.1, if someone have a solution, i would know too :smile:

Hi,

W7 or W10, the problem is here no matter what.

So, i’ve tried the solution from MikiLePingouin, and yeah, he is right. unemployed = broken car. Once i am a fisherman, woodman etc , the bug is gone.
So i don’t know what to think to be honest and i don’t really know why the game is checking your “job” when you are entering in a vehicle.

So yeah, the bug is still here when you are policeman for example but once you are woodman, fishermand & co, it’s good. If someone have a solution, i’ll be glad to take it

I have same problem in jobs in my server. I using metiers with essentials

Seems to be an issue with the mecano job. Here is a working client lua me and a guy just worked on :slight_smile: Now works as normal!

This script is in english, You will have to translate it if you is a la baguette.

mecano_client.lua (51.0 KB)

1 Like

your fix isn’t working for me :confused:

The fact is verified: neither mécano job handling of vehicle damage nor the job you choose is the key… without changing a single line of code, everything is bugged / messed up for guys not running Windows 10, and is running fine as soon as you get windows 10.
We have a mix of windows players on our server, players not using W10 have weird problems, vehicle with broken engine when entered, vehicle exploding when selling items during their job… Nothing related to the code, you can check and check, nothing seems wrong from a code point of view…
One of our members (very motivated) had these problems, last night he made the jump, moving to windows 10… he’s back today, and tadaaaa… everything works! no more vehicle related weird shit, he can play!

We can not exclude a player who does not use windows 10, put the previous patch back to this, and solve the problem later

1 Like

Good for you.

i’m a Windows 10 user.

What now.

1 Like

Same here…

Am a W10 user. And other friends are also on W10 and have the same issue.

It’s when we change job that the issue rises or not.

I run widnows ten and mine is fine…

But i dont use any of there framework :confused:

Do they have a vehiclehealth script or something?

he need update windows 10

This is not a windows issue.

This is a the update that came across.

Find this code:

        if engineHealth <= 150 then
            SetVehicleEngineTorqueMultiplier(vehicle,0.09)
        end
        if vehicleHealth <= 0 or 
           (engineHealth <= 900 and engineHealth > 350) or 
           petrolTankeHealth <= 900  or
           vehicleHealth - 2000 + engineHealth + petrolTankeHealth <= 0 then   
            SetVehicleEngineHealth(vehicle, -1.0)
            SetVehicleBodyHealth(0.0)
            SetVehicleUndriveable(vehicle, true)
        elseif (2100 - engineHealth - petrolTankeHealth - vehicleHealth2) >= 65 and engineHealth > 150 then
            SetVehicleDoorOpen(vehicle, 4, 0, 0)
            SetVehicleBodyHealth(vehicle, vehicleHealth + 2000 - engineHealth - petrolTankeHealth)
            SetVehicleEngineHealth(vehicle, 150.0)
        end

And fiddle with the settings. Because if its disabled, you will find your game then works fine.

If you cant fix it just comment all of this out.

Or first try commenting all of this out, restart server see if issue persist’s

I’ll try this tomorrow, maybe this is related to the vehicle health / body health / engine health getter’s that are different behaviors… I’ll trace all the values, and find one of our user who has the weird issues to trace these values too

someone know about the problem or any fix?

Some people tell me to update my Windows to Windows 10.
Always same problem, i can’t drive any vehicule…

Trying to fix it now guys, Hang tight!