warxander / los-santos-v

FiveM PvPvE Freeroam game mode
https://forum.cfx.re/t/free-standalone-los-santos-v-pvpve-freeroam/58237
55 stars 20 forks source link

Issue with velocity mission #12

Closed saulienis closed 4 years ago

saulienis commented 4 years ago

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)

end) `

warxander commented 4 years ago

It shouldn't explode by game design.