[Release] DOJ Like Fix vehicle command

Removed all releases, since the elements like to flex their shitty code.

2 Likes

You could shrink this to a simple client side command by using registercommand

I’ll have a look into that now

RegisterCommand("fix", function()
    local ped = PlayerPedId()
    if (DoesEntityExist(ped) and not IsEntityDead(ped)) then
        if (IsPedSittingInAnyVehicle(ped)) then
            local vehicle = GetVehiclePedIsIn( ped, false)

            if (GetPedInVehicleSeat(vehicle, -1) == ped) then
                SetVehicleEngineHealth(vehicle, 1000)
                SetVehicleEngineOn(vehicle, true, true)
                SetVehicleFixed(vehicle)
            end
        end
    end
end, false)

I’ll update it now cheers.

It shows that its started but /fix in game does not work

hmm. try redownloading it, it works perfectly for me.

Nope, I cant get it to work on the Server, it shows that its started but /fix does not work

You using custom-chat?

I’ve updated it, try it now.

Still wont work, is this for Client or Server?

Okay if it doesn’t work for you now, it is on your side. It is client sided.

Ohhh, I said I couldnt get it to work on the Server, could you make it Server Sided?

Sorry I didn’t understand your question all fivem lua scripts are server sided, it just uses client sided events and natives in the code. it will work on your server.

Where did you put the folder?

You just follow the instructions, you put the vehicle-fix folder into your resources and add start vehicle-fix to your server.cfg

I am just confused, where he put the resource folder

not a clue lol, it works for me and my friend who tested it.

as you can see its added and its started but it does not work https://gyazo.com/6f1981640a017bf0a6d2912defc3a33e
https://gyazo.com/4c6d1d148561ab140a7ec97585568ecf

Do you have essentialmode installed?