In your FiveMServer\recources, just drag and drop in there, then add: - mxhandcuff to your citymp-server.yml, start the server and everything should be working fine!
It isnt working, i get an error when i type /cuff 1
Error running system event handling function for resource mxhandcuff: citizen:/scripting/lua/scheduler.lua:39: 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:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function âerrorâ
citizen:/scripting/lua/scheduler.lua:39: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92
Zanny: /cuff 1
Error running system event handling function for resource mxhandcuff: citizen:/scripting/lua/scheduler.lua:39: 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:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function âerrorâ
citizen:/scripting/lua/scheduler.lua:39: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92
Zanny: /cuff 2
Replace the splitstring function with this one.
function stringsplit(inputstr, sep)
if sep == nil then
sep = â%sâ
end
local t={} ; i=1
for str in string.gmatch(inputstr, â([^ââŚsepâŚ"]+)") do
t[i] = str
i = i + 1
end
return t
end
this didnât fix it for me
Well I currently donât offer support anymore and this script hasnât been updated since February, so I would have thought there would be a more updated cuff script about
there isnât this is the only one
There are other cuff scripts. Just use the search bar. [Release] Handcuff and Handsup scripts
Hey, I want Cuff command but I donât know how to do it so please can you help me.
update
Unfortunately Iâve discontinued support for this script, sorry!
it says sv_handcuff.lua failed to load and it is in file� help
As I said in the reply above to another user, i no longer support this script, and it no longer works as it is has been a year+ since last updated.
How to I make it whitelisted so only policejob can use this cuff method?