diff --git a/client/carry.lua b/client/carry.lua index 9abe8f4..38093b3 100644 --- a/client/carry.lua +++ b/client/carry.lua @@ -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 diff --git a/client/hospital.lua b/client/hospital.lua index 82c0527..665689a 100644 --- a/client/hospital.lua +++ b/client/hospital.lua @@ -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