Questions about ULX commands, Jailbreak Gamemode, pLogs, 3rd Person and RTV
6 replies, posted
Hi everyone.
I'm currently in the development stages of my GMod Jailbreak server, and have a few questions. The gamemode I'm running is Jailbreak 7. I'm a pretty big noob when it comes to LUA programming, so forgive me if I assume anything that isn't possible, etc.
1. First off, I'd like to know how it is possible to make ULX commands in chat invisible. To help explain what I mean, here's an image of me using the ULX hp command:
[url]http://imgur.com/Eo3IpYl[/url]
As you can see, the "Bubbyodo: !hp Bubbyodo 100" bit in chat is visible, as well as the "[B]You[/B] set the hp for [B]Yourself[/B] to 100". I'd like it so that only the "[B]You[/B] set the hp for [B]Yourself[/B] to 100" is visible in chat. If anyone could help me out and let me know how to do so, that would be great!
2. Ok, my second question. So I was wondering if there are any ULX custom commands for Jailbreak gamemode such as "!demote" for demoting the current warden, "!open" to open the cell doors, "!restrict <player> <time>" to restrict them from the guards team, "!tpg" in order to teleport all guards to the warden, "!ff" in order to enable Friendly Fire, and more. If there are any types of custom ULX commands which have similar features as the what I've just listed, I'd love to know! Also, just a little plus, its cool if you don't know about this, but can anyone tell me how to add more F4 Warden menu choice and F4 Last Request choices than what is in the default menus, or where to get the code or files from? Thanks!
3. Is there anyway to add a new load out slot to the inventory in the Jailbreak gamemode? For example, if you take a look at this following image: [url]http://imgur.com/5d6ac5q[/url]
You can see that there are only 4 load out/inventory slots (Fists, Primary, Secondary, Other). I'd like to add a different slot for items such as vapes, popcorn, etc. Ideally, it would be like this: Fists= Fists
Primary=Primary Weapon
Secondary= Secondary Weapon
Knife= Knife Slot
Other= For vapes and other accessories.
4. A question about pLogs, now. I run pLogs 2.7.1, I believe (the latest version), and would love to be able to add a new panel/section in the interface for "Weapons."
[url]http://imgur.com/gl03a3u[/url]
In the image shown, in the "Commands" section, it includes both the action of picking up weapons as well as chat and menu commands. Is there anyway to separate the two? Thanks!
5. I would very much like to have an RTV system installed in my server, triggered by a command such "!rtv" or "rtv" (which can be used by any player, not just admins) which would only bring up a menu to vote change the [B]map[/B], not the gamemode. Something like the Shout Vote system (which is not currently available) which brings up a UI in order to vote for maps. I can't find a RTV system that actually works for me in my Jailbreak gamemode...
6. Lastly, I have installed a group of custom ULX commands, one of which included a 3rd person command. It's just how I would like it, since I just need to type "!3p" in chat and it will toggle 3rd person mode, however, it is a side view 3rd person mode, which I'm really not a big fan of, as is shown here: [url]http://imgur.com/EMKKPnL[/url]
If anyone could send me the files or code/script for a 3rd person mode that uses "!3p" or something of the sort and is a central 3rd person mode, that would be grand.
Thats all my questions! Sorry if they're a bit vague or unclear. Anyway, if you have an answer to any one of my questions (you don't have to answer all), please just leave a reply and say which question you're answering! Thanks so much!
[editline]19th May 2017[/editline]
One more question which I forgot about! I've got HatsChat 2 as my chat box, how do I add ranks that are automatically given after a user has had a certain playtime on the server, e.g. 24 hours playtime = regular...?
1. Line 68 in ulib/lua/ulib/server/concommand.lua:
[lua]if hide then return "" end[/lua]
Remove the if statement, make it always return ""
5. Why would the players be able to change the gamemode? If it's a Jailbreak server, wouldn't you always want it to be on Jailbreak?
6. Do you mean 3rd person like in the default third person option? It's a simple offset in a CalcView hook, there are many existing modules for this
[QUOTE=JasonMan34;52250637]
5. Why would the players be able to change the gamemode? If it's a Jailbreak server, wouldn't you always want it to be on Jailbreak?
[/QUOTE]
I don't know what I was meaning in that xD, but what I was trying to ask is if there was a module or code that I could use in order to have an RTV system, a server wide rock the vote (change the map to one of the installed maps).
[QUOTE=JasonMan34;52250637] 6. Do you mean 3rd person like in the default third person option? It's a simple offset in a CalcView hook, there are many existing modules for this
[/QUOTE]
Yes, something like the default third person option. I'll take a look out for the modules! Thanks!
And thanks for the answer to question 1! I really appreciate it.
[QUOTE=bubbyodo;52250749]what I was trying to ask is if there was a module or code that I could use in order to have an RTV system, a server wide rock the vote (change the map to one of the installed maps).[/QUOTE]
Yes. Again, there are multiple rtv modules out there.
If you can't find a Jailbreak one, you could probably change [URL="https://github.com/JasonMan34/quality_of_life/blob/master/lua/qol_rtv.lua"]this TTT one[/URL] to fit your needs
[QUOTE=JasonMan34;52250637] 1. Line 68 in ulib/lua/ulib/server/concommand.lua:
if hide then return "" end
Remove the if statement, make it always return ""
[/QUOTE]
Sorry I'm not quite sure what/where in the file you wanted me to add or remove. Could you clarify, or show me what the completed code would look like for that?
[QUOTE=bubbyodo;52251292]Sorry I'm not quite sure what/where in the file you wanted me to add or remove. Could you clarify, or show me what the completed code would look like for that?[/QUOTE]
I literally cannot make it any clearer than that.
I gave you the file, the line in the file, what the line is originally, and what it should be afterwards
[QUOTE=JasonMan34;52252789]I literally cannot make it any clearer than that.
I gave you the file, the line in the file, what the line is originally, and what it should be afterwards[/QUOTE]
Apologies, I was being really stupid and leaving the line as
return "" end
NOT
return ""
I was not aware that I was supposed to remove the end, so it screwed up the ULX commands a bit. Thanks now, though! Fixed it and its working!
Sorry, you need to Log In to post a reply to this thread.