[help] GetVehicleMod Turbo

I need some help with the fuction GetVehicleMod. I dont know why when i try to GetVehicleMod(veh,18) (Turbo) he is return all of time -1. I need help to know how to get the Turbo value.

Nobody can reponse me ?

http://www.dev-c.com/nativedb/func/info/84b233a8c8fc8ae7

Yes i know, but what is the good function.

Thanks @MrDaGree, It work. Yes i havent see your link open the function field :slight_smile:.

Hey, I got the same trouble. But I didn’t understand the solution xD Could someone help me ?

Just tested this on my FX server, Seems to be working good.

Citizen.CreateThread(function()
	while true do
		Wait(1)
		playerVeh = GetVehiclePedIsIn(GetPlayerPed(-1), false)
		IsToggleModOn(playerVeh, 18)
		ToggleVehicleMod(playerVeh, 18, false)
	end
end)

Why did you add this? Do you wanna check if it is ON, before turning it OFF?

The function I just sent turns the Turbo off. I posted this to see if maybe it will push him in the right direction.