Skip to content

Commit

Permalink
Merge pull request #16 from ND-Framework/fix/unacarry-patients-on-treat
Browse files Browse the repository at this point in the history
fix: uncarry patients on treat
  • Loading branch information
Andyyy7666 authored Jan 30, 2025
2 parents b3def48 + d11e03b commit 401cf98
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 401cf98

Please sign in to comment.