[HELP] Trying to make people walk with handcuffs

I can’t make people walk with handcuffs, I’m using esx_policejob. I’d try this [How to] Make people walk when they are handcuffed but its not worked any ideas why it does not work?
I using esx_policejob: [Release] [ESX] [Police Job]

My main.lua in /resources/[esx]/esx_policejob/client https://pastebin.com/5nszhp9a

1 Like

You have to looking for the part with

DisableControl… And you have to delete the line with WASD

@Heady20006, Thank you for the replay i’ll try it.

okay now i´m on my pc. you have to exactly looking for this area of code:

if IsHandcuffed then
			DisableControlAction(0, 1, true) -- Disable pan
			DisableControlAction(0, 2, true) -- Disable tilt
			DisableControlAction(0, 24, true) -- Attack
			DisableControlAction(0, 257, true) -- Attack 2
			DisableControlAction(0, 25, true) -- Aim
			DisableControlAction(0, 263, true) -- Melee Attack 1
			--DisableControlAction(0, Keys['W'], true) -- W
			--DisableControlAction(0, Keys['A'], true) -- A
			--DisableControlAction(0, 31, true) -- S (fault in Keys table!)
			--DisableControlAction(0, 30, true) -- D (fault in Keys table!)

			DisableControlAction(0, Keys['R'], true) -- Reload
			DisableControlAction(0, Keys['SPACE'], true) -- Jump
			DisableControlAction(0, Keys['Q'], true) -- Cover
			DisableControlAction(0, Keys['TAB'], true) -- Select Weapon
			DisableControlAction(0, Keys['F'], true) -- Also 'enter'?

			DisableControlAction(0, Keys['F1'], true) -- Disable phone
			DisableControlAction(0, Keys['F2'], true) -- Inventory
			DisableControlAction(0, Keys['F3'], true) -- Animations
			DisableControlAction(0, Keys['F6'], true) -- Job

			DisableControlAction(0, Keys['V'], true) -- Disable changing view
			DisableControlAction(0, Keys['C'], true) -- Disable looking behind
			DisableControlAction(0, Keys['X'], true) -- Disable clearing animation
			DisableControlAction(2, Keys['P'], true) -- Disable pause screen

			DisableControlAction(0, 59, true) -- Disable steering in vehicle
			DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
			DisableControlAction(0, 72, true) -- Disable reversing in vehicle

			DisableControlAction(2, Keys['LEFTCTRL'], true) -- Disable going stealth

			DisableControlAction(0, 47, true)  -- Disable weapon
			DisableControlAction(0, 264, true) -- Disable melee
			DisableControlAction(0, 257, true) -- Disable melee
			DisableControlAction(0, 140, true) -- Disable melee
			DisableControlAction(0, 141, true) -- Disable melee
			DisableControlAction(0, 142, true) -- Disable melee
			DisableControlAction(0, 143, true) -- Disable melee
			DisableControlAction(0, 81, true) -- Disable radio
			DisableControlAction(0, 82, true) -- Disable radio
			DisableControlAction(0, 75, true)  -- Disable exit vehicle
			DisableControlAction(27, 75, true) -- Disable exit vehicle

			if IsEntityPlayingAnim(playerPed, 'mp_arresting', 'idle', 3) ~= 1 then
				ESX.Streaming.RequestAnimDict('mp_arresting', function()
					TaskPlayAnim(playerPed, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0.0, false, false, false)
				end)
			end
		else
			Citizen.Wait(500)
		end

thats my code and my cuffed players can walk

1 Like

Thank you, i’ll give it a try

@Heady20006, Its not working can you send me the full one?

no. cause i edited a lot of stuff in the scripts i`m using.

it should work.
cause these are the only lines they disable something if you are handcuffed.
i hope you didnt copy and paste it?
you have to find the right section in your own script and replace it.

@Heady20006, You know how to remove the .0 in the dirty money?

Maybe find the Code and make tonumber()

Its still not working, maybe its something with freeze player?

oh yeah sure:

SetEnableHandcuffs(playerPed, true)
			DisablePlayerFiring(playerPed, true)
			SetCurrentPedWeapon(playerPed, GetHashKey('WEAPON_UNARMED'), true) -- unarm player
			SetPedCanPlayGestureAnims(playerPed, false)
			--FreezeEntityPosition(playerPed, true)
			DisplayRadar(false)

Something else? Cause i saw another thing with freeze…

this should be the police vehicleshop

Okay, thanks i’ll give it a try.

@Heady20006, How can i remove the .0 in the dirty money and the money, i using esx_society

I already told ya

I know but i cannot find it

@Heady20006, got another thing i need support with if its not mind to you…
i want to make the bag the same like the headbag,
I’m using [Release] esx-kr-bag-inventory - A bag inventory script synced with the server for the bag and [Release] Head bag script [ESX] Version: 1.0.1 for the headbag. I really need please if you can send me a code how to put it like it or help i’ll really appriciate that.

@Heady20006 Could you help me, please?
I don’t have any one to help me, all the developers ignore me

Dont know what you want.
You have the headbag script und die bag inventory script.

And you wanna Do what?