For some reason, many of you I can see are having trouble making your own arrest script, so I thought I would aid in the search for a working arrest script. REDACTED.
Installation
YOU MUST HAVE [COMMAND PROCESSOR]
([Release] Command Processor)!
Create a new folder in your resources folder, and name it whatever you wish. Inside of your new folder, drag and drop the contents of my zip. Then, add “- [name of your resource]” to your AutoStartResources in your citmp-server.yml file. Please ensure that if you have the “/cuff” handcuff script already, it is disabled, as the commands may conflict.
Usage
To use, simply type “/cuff [playerID]” (without the brackets) and the player will be cuffed. Press the up arrow on your keyboard while in game to get the player’s ID number. No, it will not freeze them or prevent them from shooting/driving/killing, but it does add a bit of roleplay to any server.
Notice
While I am aware that there are many things that could be missing, please keep in mind that this is my first published script and this is only the first version. I will update it in the future with escorting possibilities, as well as the prevention of shooting/driving or anything other than standing (similar to ArmA 3 life). Anyhow, I hope you enjoy it.
how would a player be uncuffed and perhaps making the /cuff ID to /cuff player name would be much easier yo use as sometimes the score menu will not display for everyone
@twitchyb1t if a player is already cuffed you type it in again and it will uncuff them. And I suppose that you could do Playername, however I wanted the command to be quick to use. Some people have rather long names. It worked for my server environment, you are more than welcome to modify it to yours. @MarkViolla If the player does not exist, nothing will happen… it’s pretty simple. And as I stated I my post, it’s just something I threw together that works for people who were looking for a script, you are more than welcome to “remake it”, though I don’t see how’s it “extrasensory” it is quite literally 32 lines of code at max, including blank lines. @kanersps I apologize Kanersps, there is a handcuff script floating around that you linked to someone in a topic somewhere on the forums, and I was under the impression it was by you. In that script the command /cuff is used to cuff only the person who issues the command and I just said that they may conflict, I hadn’t actually tried it. It may not. @BelgInNL The script was not my Kanersps, and all the script does is cuff the person who issues the command, you cannot cuff other people with it. @MDJDUFFY it worked for me on my server. I tested it multiple times with multiple people. I could also issue it on myself. What command are you entering? Do you have the updated chat files from the latest server update?
@MDJDUFFY It is not processing “/cuff [playerID]” as a command. I’m not very good at technical support things, but for some reason your server is not processing the command. Maybe take it up in the Technical Support thread? It’s not my script, it’s the server.
@cether10 i contacted support and they say if i have installed it correclty (which i have) it must be a problem with the script. is there anything else i need to do other than add new resource folder and add to citmp.yml
I love how you say i doesn’t need anything, But it appears to need a “chatCommandEntered” event. I’m guessing you get that from a modifcation to the chat resource?
@Kng It was my mistake. I just now realized that Command Processor is required for this to work. There is no reason to get all snarky “I love how…”, as if you are better than anyone else. It was a mistake. It has been addressed.
This is not utilizing the command resource properly, you don’t even need to replace the chatCommandEntered function with one of yours, you see, all you have to do is add the command processor after the last script in your __resource.lua file (for server and client) and after that just define your functions. In this case:
I love how the only reason you didn’t include it is you had no idea it had to be included (which, ironically, it didn’t as I’ve done my own) as you’ve quite simply blatantly reuploaded my work with a changed author name. “base framework idea by Albo1125” lol! Who the hell do you think you are, acting as if you put so much effort into this?