You shoukd use SetEnableHandcuffs(ped, toggle) also, to prevent using weapons.
Usefull natives to check and add in your script:
SetEnableHandcuffs(GetPlayerPed(-1), true)
IsPedCuffed(GetPlayerPed(-1))
UncuffPed(GetPlayerPed(-1))
Also, you can give ped “weapon”, named WEAPON_HANDCUFFS - to make ped play “cuffs” animation instead of TaskPlayAnim, and also, mp_m(f)_freemode__01 has drawable variations with cuffs on hands. Check some slots with my editor.
Is there anything i can add to the script to be able to enter vehicles whilst cuffed i.e police vehicles. I’ve already figured out that Numpad 1 makes your player rag doll and then once you stand up again you can walk but still cant get in police cars
Am I okay to reupload this but with the ability to move about whilst handcuffed? (I know people know how to do it already but it’s easier than editing the code yourself - Especially for the noobys )
Error running system event handling function for resource mxhandcuff: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: sv_handcuffs.lua:38: attempt to call a nil value (method ‘Split’)
stack traceback:
sv_handcuffs.lua:38: in function ‘stringsplit’
sv_handcuffs.lua:4: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138