After finishing Velocity mission, the rocket voltic doesn't explode.
I believe this is the code for the car to explode when the mission is finished.
`RegisterNetEvent('lsv:velocityFinished')
AddEventHandler('lsv:velocityFinished', function(success, reason)
if helpHandler then helpHandler:Cancel() end
MissionManager.FinishMission(success)
if not HasSoundFinished(detonationSound) then StopSound(detonationSound) end
ReleaseSoundId(detonationSound)
detonationSound = nil
if not success and not IsPedInVehicle(PlayerPedId(), vehicle, false) then
SetEntityAsMissionEntity(vehicle, true, true)
DeleteVehicle(vehicle)
end
vehicle = nil
RemoveBlip(vehicleBlip)
vehicleBlip = nil
Gui.FinishMission('Velocity', success, reason)
After finishing Velocity mission, the rocket voltic doesn't explode. I believe this is the code for the car to explode when the mission is finished.
`RegisterNetEvent('lsv:velocityFinished') AddEventHandler('lsv:velocityFinished', function(success, reason) if helpHandler then helpHandler:Cancel() end
end) `