ESX stretcher

Hello,
20190726091802_1
Excuse my English I just wish to share my first code which is a stretcher for ems based on the wheelchair code.

download :

everything is based on the code [Release] qalle-wheelchair (Wheelchair for EMS Standalone) https://forum.cfx.re/u/qalle/summary

7 Likes

Looks good, nice work! :ok_hand:

Nice work :+1:

nice , good work

Nice work!

Is the bed mobile if there is another player on it?

Very nice! Thanks for sharing!
But you can “drive” the stretcher when youre on it😛
Do you know how to fix this?

can you send me that Hud? On top of the screen

I think its something like this
https://forum.cfx.re/t/have-a-hud-bar-es-extended-desing-hud/602208

can you all so get to vrp

You havent even removed the drive function. And you can punch with it wich makes no sense

“[REQUIREMENTS] - None, standalone” - “ESX stretcher”, choose one! You should also credit the original author of the code if you are gonna release his work.

Can you make it only for ambulance job ?

Would be so good ^^

Just restrict this chat command to a job.

I try, but dont work for me ;/ U can show me who?

try delete it

		if IsControlPressed(0, 32) then
			local x, y, z  = table.unpack(GetEntityCoords(civiereObject) + GetEntityForwardVector(civiereObject) * -0.02)
			SetEntityCoords(civiereObject, x,y,z)
			PlaceObjectOnGroundProperly(civiereObject)
			
			TaskPlayAnim(playerPed,missfbi5ig_0, lyinginpain_loop_steve, 8.0, 1.0, 1, 45, 1.0, 0, 0, 0)
			--SetEntityCoords(playerPed, bedCoords.x , bedCoords.y, bedCoords.z, 1, 1, 0, 0)
            --SetEntityHeading(playerPed, GetEntityHeading(bed) + 180.0)
            --TaskPlayAnim(playerPed,animDict, animName, 8.0, 1.0, -1, 45, 1.0, 0, 0, 0)
		end

ok I made the quote this is the first time I post a code

Who can help me and complete the perfect get out of bed?

Sit = function(civiereObject)
	local closestPlayer, closestPlayerDist = GetClosestPlayer()

	if closestPlayer ~= nil and closestPlayerDist <= 1.5 then
		if IsEntityPlayingAnim(GetPlayerPed(closestPlayer), 'anim@gangops@morgue@table@', 'ko_front', 3) then
			ShowNotification("已經有人躺在病床上了!")
			return
		end
	end

	LoadAnim("anim@gangops@morgue@table@")

	AttachEntityToEntity(PlayerPedId(), civiereObject, 0, 0, 0.0, 2.0, 0.0, 0.0, 180.0, 0.0, false, false, false, false, 2, true)

	local heading = GetEntityHeading(civiereObject)

	while IsEntityAttachedToEntity(PlayerPedId(), civiereObject) do
		Citizen.Wait(5)

		if IsPedDeadOrDying(PlayerPedId()) then
			DetachEntity(PlayerPedId(), true, true)
		end

		if not IsEntityPlayingAnim(PlayerPedId(), 'anim@gangops@morgue@table@', 'ko_front', 1) then
			
			TaskPlayAnim(PlayerPedId(), 'anim@gangops@morgue@table@', 'ko_front' ,8.0, -8.0, -1, 1, 0, false, false, false )
			
		end

		if IsControlJustPressed(0, 73) then
			
			TaskPlayAnim(PlayerPedId(), 'switch@franklin@bed', 'sleep_getup_rubeyes' ,1.0, 1.0, -1, 1, 0, false, false, false )
			Citizen.Wait(5000)
			DetachEntity(PlayerPedId(), false, false)

			local x, y, z = table.unpack(GetEntityCoords(civiereObject) + GetEntityForwardVector(civiereObject) * - 1.4)

			SetEntityCoords(PlayerPedId(), x,y,z)
		end
	end
end

A custom model for the stretcher would have done quite abit with out doubt.

Despite adding credits at a later stage, I’ve concluded this resource to be identical to the original except some changes animations and variable names.

Original: [Release] qalle-wheelchair (Wheelchair for EMS Standalone)

Diffchecker: https://www.diffchecker.com/QBd2HX3R

Therefore, this post is not original enough.


I also don’t understand why this is marked as [ESX] when it does not require ESX at all.