Skip to content

Commit

Permalink
Update client.lua
Browse files Browse the repository at this point in the history
Fixed issue when switching cars. If player went from a "healthy" car to a damaged car, they would previously blackout.
  • Loading branch information
SaltyGrandpa authored Jul 27, 2018
1 parent 2ed871f commit 3cb8be4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Citizen.CreateThread(function()
oldSpeed = currentSpeed
end
end
else
oldBodyDamage = 0
oldSpeed = 0
end

if isBlackedOut and Config.DisableControlsOnBlackout then
Expand All @@ -61,4 +64,4 @@ Citizen.CreateThread(function()
DisableControlAction(0,75,true) -- disable exit vehicle
end
end
end)
end)

0 comments on commit 3cb8be4

Please sign in to comment.