ESX l LRP-Steal (Optimized)

there I enclose the versions that I use if they wish they can use them and if they cannot adapt it in their own way, it is easy even if it has nothing complicated to adapt.

No me sirve todavía, cuando robo a la persona con las manos en alto no se me abre el segundo inventario, hay alguna solución?

It doesn’t work for me yet, when I steal the person with my hands up, the second inventory is not opened, is there a solution?

what animation do you use?

i have another problem, rob money and items are good, but weapons dont show if u dont have the weapon what are you going to steal

sorry, i speak spanish.

video so that you understand me better: https://youtu.be/S3xSIcpYPIk

Gracias @Karenciitalove1 <3

1 Like

Hi, the script I just released, was based on the “esx_lootdeadbody”, so downloading this script is the same.

https://forum.cfx.re/t/release-esx-loot-the-dead-body/610796/50

on the “esx_inventoryhud” I use the same version of the “esx_inventoryhud shops”, you can download that for you to use this script.

https://forum.cfx.re/t/inventoryhud-shops/685775

es compatible si no utilizas el inventoryhud?

1 Like

if you want a version without the “esx_inventoryhud” look for the “esx_thief”

That is because of the “mythic_notify”, you can comment the line or download the version that we attached at the top :slight_smile: (almost at the end of the post)

not at the moment, but if we try we will put it :slight_smile:

Thank you for your great effort

But there is a problem.

Weapons can’t be stolen.

I wonder if this is the case.

You have to be very close so you can steal.

https://forum.cfx.re/t/release-esx-loot-the-dead-body/610796/50

Try checking the arrangements that were left there.

Thank you very much

But there is a problem

No matter how much I shoot, if I reconnect, the bullet is full.

The bullet is full when reconnected.

Look at the lines you have commented, it seems that:

--riggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

This line should not be commented, change the notifications of the “mythic” to the “esx_notification”

CLIENT:

ESX.ShowNotification('YOUTEXTHERE')

SERVER:

xPlayer.showNotification('YOUTEXTHERE')

I leave some fixes to those who can’t see objects when they steal

https://github.com/Trsak/esx_inventoryhud/commit/f74fa457deb92c7a9db66b73c9760373356fce45

https://github.com/ESX-Org/es_extended/pull/322

https://github.com/Trsak/esx_inventoryhud/commit/f74fa457deb92c7a9db66b73c9760373356fce45

I also recommend seeing the link I left a long time ago, I also had that problem and fixed it with that.

https://forum.cfx.re/t/release-esx-loot-the-dead-body/610796/50

https://github.com/Trsak/esx_inventoryhud/commit/f74fa457deb92c7a9db66b73c9760373356fce45

https://github.com/ESX-Org/es_extended/pull/322

https://forum.cfx.re/t/release-esx-loot-the-dead-body/610796/50

That may be because we do not use the same animation to raise our hands, I already answered the same question to a person above.

send me your animation code to raise your hands

This is the code you use to make your hands, use the “X” key for people to raise their hands.

Use this code to see if it works for you.


handsup = false

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)

		if handsup == false then
			Citizen.Wait(50)
		end

		local lPed = GetPlayerPed(-1)
		RequestAnimDict("random@mugging3")
		if not IsPedInAnyVehicle(lPed, false) and not IsPedSwimming(lPed) and not IsPedShooting(lPed) and not IsPedClimbing(lPed) and not IsPedCuffed(lPed) and not IsPedDiving(lPed) and not IsPedFalling(lPed) and not IsPedJumping(lPed) and not IsPedJumpingOutOfVehicle(lPed) and IsPedOnFoot(lPed) and not IsPedRunning(lPed) and not IsPedUsingAnyScenario(lPed) and not IsPedInParachuteFreeFall(lPed) then
			if IsControlPressed(1, 323) then
				if DoesEntityExist(lPed) then
					--SetCurrentPedWeapon(lPed, 0xA2719263, true)
					Citizen.CreateThread(function()
						RequestAnimDict("random@mugging3")
						while not HasAnimDictLoaded("random@mugging3") do
							Citizen.Wait(100)
						end

						if not handsup then
							handsup = true
							TaskPlayAnim(lPed, "random@mugging3", "handsup_standing_base", 2.5, -2.5, -1, 49, 0, 0, 0, 0)
						end   
					end)
				end
			end
		end
		if IsControlReleased(1, 323) then
			if DoesEntityExist(lPed) then
				Citizen.CreateThread(function()
					RequestAnimDict("random@mugging3")
					while not HasAnimDictLoaded("random@mugging3") do
						Citizen.Wait(100)
					end

					if handsup then
						handsup = false
						ClearPedSecondaryTask(lPed)
					--	SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true)
						
					end
				end)
			end
		end
	end
end)
1 Like

sion of mythic_notifi change the word DoCustomHudText to SendAlert

with that you solve the problem

mithyc_notific and progressBar must start before thehud inventory and the lrp-steal script.

also we leave the versions we use

2 Likes