Skip to content

Commit

Permalink
fix: bpt_ambulancejob\client\job.lua used variable _deadPlayers with …
Browse files Browse the repository at this point in the history
…unused hint
  • Loading branch information
bitpredator committed Jun 7, 2024
1 parent 5a60e5b commit 8b5a6d6
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions server-data/resources/[bpt_addons]/bpt_ambulancejob/client/job.lua
Original file line number Diff line number Diff line change
Expand Up @@ -370,30 +370,10 @@ CreateThread(function()
local distance = #(playerCoords - v.From)

if distance < Config.DrawDistance then
DrawMarker(
v.Marker.type,
v.From,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
v.Marker.x,
v.Marker.y,
v.Marker.z,
v.Marker.r,
v.Marker.g,
v.Marker.b,
v.Marker.a,
false,
false,
2,
v.Marker.rotate,
nil,
nil,
false
)
DrawMarker(v.Marker.type, v.From, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, v.Marker.x, v.Marker.y, v.Marker.z, v.Marker.r,
v.Marker.g, v.Marker.b, v.Marker.a, false, false, 2,
v.Marker.rotate, nil, nil, false)
letSleep = false

if distance < v.Marker.x then
Expand Down Expand Up @@ -556,9 +536,7 @@ AddEventHandler("esx:setJob", function(job)
end)

RegisterNetEvent("bpt_ambulancejob:setDeadPlayers")
AddEventHandler("bpt_ambulancejob:setDeadPlayers", function(_deadPlayers)
deadPlayers = _deadPlayers

AddEventHandler("bpt_ambulancejob:setDeadPlayers", function()
if isOnDuty then
for playerId, v in pairs(deadPlayerBlips) do
RemoveBlip(v)
Expand Down

0 comments on commit 8b5a6d6

Please sign in to comment.