Skip to content

Commit

Permalink
/stoprace now does everything it should
Browse files Browse the repository at this point in the history
The server now sends a message whenever the race is stopped with /stoprace.
You are now unfrozen and the countdown goes away when you do /stoprace
  • Loading branch information
Hunt3red committed Sep 4, 2018
1 parent c83bd65 commit 488fdd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ end

RegisterNetEvent("stopRace")
AddEventHandler("stopRace", function()
TriggerEvent("chatMessage", "Server", {0,0,0}, string.format("Race stopped"))
FreezeEntityPosition(GetVehiclePedIsUsing(GetPlayerPed(-1)), false) --Unfreeze Entity
setcountdown(0)
PlaySoundFrontend(-1, "ScreenFlash", "WastedSounds")
DeleteCheckpoint(checkpoint)
RemoveBlip(blip)
Expand Down

0 comments on commit 488fdd0

Please sign in to comment.