Skip to content

Commit

Permalink
fix: uncarry patients on treat
Browse files Browse the repository at this point in the history
  • Loading branch information
Andyyy7666 committed Jan 30, 2025
1 parent b3def48 commit d11e03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/carry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function startCarry(dict, anim, flag, carryingState, carriedState, carryin
end)
end

local function carryNearbyPlayer()
function carryNearbyPlayer()
local playerState = Player(cache.serverId).state
if playerState.ambulanceCarry == true then
return
Expand Down
1 change: 1 addition & 0 deletions client/hospital.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ local function treatPatient(data)
})
end
TriggerServerEvent("ND_Ambulance:treatPatient", carry)
carryNearbyPlayer()
elseif state.movingStretcher then
local stretcher = GetNearestStretcher(data.coords)
if not stretcher or not DoesEntityExist(stretcher) then
Expand Down

0 comments on commit d11e03b

Please sign in to comment.