Skip to content

Commit

Permalink
fix: #2 Vehicle health is not zero when it dead.
Browse files Browse the repository at this point in the history
  • Loading branch information
l3lackMegas committed Mar 4, 2021
1 parent f5b252f commit 9cca549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Citizen.CreateThread(function()
local position = GetEntityCoords(playerPed);

-- //NOTE: Copy from original (DyzCarSystem)
local EntityHealth = GetEntityHealth(currVeh);
local maxEntityHealth = GetEntityMaxHealth(currVeh)
local EntityHealth = GetEntityHealth(currVeh) - 100;
local maxEntityHealth = GetEntityMaxHealth(currVeh) - 100;
local vehicleHealth = (EntityHealth / maxEntityHealth) * 100;

SetPlayerVehicleDamageModifier(PlayerId(), 100);
Expand Down

0 comments on commit 9cca549

Please sign in to comment.