I’ve been trying to use the native ‘SetVehicleAudio’ but i cant seem to get it to work like the docs say (https://runtime.fivem.net/doc/reference.html#_0x4F0C413926060B38). Has anyone succeeded in using this native before? Help would be appreciated
.
Also here’s the client side script im trying to use. Everything here works apart from setting the vehicles sound. The vehicle ‘0x8A63C7B9’ is ‘POLICE4’.
Citizen.CreateThread( function()
while true do
Citizen.Wait(0)
local veh = GetVehiclePedIsIn(GetPlayerPed(-1), false)
if IsVehicleModel(veh, 0x8A63C7B9) then
SetVehicleColours(veh, 111, 111)
SetVehicleEnginePowerMultiplier(veh, 40.00)
SetVehicleEngineTorqueMultiplier(veh, 2.00)
SetVehicleAudio(veh, "ADDER")
end
end
end)
Editied your title because it was very long…
Original Title: Does anyone know how the ‘SetVehicleAudio’ native works. Everytime I try it doesn’t work like documentation says it does
New Title: Does anyone know how the ‘SetVehicleAudio’ native works?