Recent Posts

Pages: [1] 2 3 ... 10
Developers Corner / Re: Command redirection
« Last post by JamminR on Yesterday at 07:44:06 PM »
Will standard server/client console command "noclip" trigger ULibcommandcalled?
noclip is a standard server function, not even part of ULib.
I imagine, it's possible, since we hook into ALL hooks with a priority system, that we might see it.
I'm not sure that's intentional though, and wouldn't expect ULibcommandcalled to be called.

(Oh, and BlueNova, nice to see you here)

EDIT - In addition to BlueNova's suggestions, you may have better luck with the GM:PlayerNoClip hook.
Developers Corner / Re: Command redirection
« Last post by BlueNova on Yesterday at 05:12:49 PM »
Without doing something other than a quick read, you have it returning before you have the player run noclip. So the hook will stop. Maybe just replace the return statement with an if/else statement?
Developers Corner / Command redirection
« Last post by Zealot on Yesterday at 05:02:30 PM »
Hello.  I am trying to fix this script so that when the player uses the command "noclip" it redirects it to "ulx noclip".  I thought I had it at first, but it doesn't work.  Can anyone tell me what I may be doing wrong?

Code: [Select]
hook.Add("ULibCommandCalled", "PreventTheNoclip", function(ply, cmd, args)
if cmd == "noclip" then
return ply:Team() == TEAM_MODERATOR or ply:IsSuperAdmin()
ply:ConCommand( "ulx noclip" )

Any help would be appreciated.
Developers Corner / Re: Command requires save to work??
« Last post by TheTrustySword on January 20, 2019, 10:08:32 AM »
Thank you for the help. At least this now makes sense to me. I will have a look and get back to you!
Developers Corner / Re: Command requires save to work??
« Last post by MrPresident on January 20, 2019, 09:24:48 AM »
Without seeing the exact code and stack trace from your error, this is only speculation... but..

it sounds like you have something in another file that is named the same and therefore overwriting your custom command or a variable used in it.

Opening and saving the file (while your server is running) causes gmod to hotload that file and the definitions in that file become what is being used.

Not sure the best way to go about checking for that... you would need to open up any custom files you have and make sure you didn't use the same names. Copy/Paste can cause this if you forget to rename something.
Developers Corner / Command requires save to work??
« Last post by TheTrustySword on January 20, 2019, 08:48:49 AM »

So I created a custom ULX command, quite a few actually, and I'm having one of the strangest issues I've ever encountered. For some reason one of my commands pops up with an error (saying target_ply is a nil value). I have assigned it with the PlayerArg. But to fix it I have to open the file and press save. Then it runs perfectly fine. All the other commands in this file work fine and I wrote them in the exact same way. Anyone have any suggestions or help? I can't really open the file and save it every time..

Here is the format I used for the command which does not work.
Code: [Select]
function ulx.supercoolcommand(calling_ply,target_ply)
ulx.fancyLogAdmin( calling_ply, "#A did something super cool to #T", target_ply )
local supercoolcommand = ulx.command("Some Super Cool Stuff", "ulx supercoolcommand", ulx.supercoolcommand, "!supercoolcommand")
supercoolcommand:addParam{ type=ULib.cmds.PlayerArg }
supercoolcommand:defaultAccess( ULib.ACCESS_ADMIN )
supercoolcommand:help( "Does something super cool." )
General Chat & Help and Support / MOVED: U-Time webpanel leaderboard
« Last post by JamminR on January 15, 2019, 03:27:48 PM »
Off-Topic / Re: U-Time webpanel leaderboard
« Last post by SweetShoregamer on January 15, 2019, 01:05:01 PM »
A nicer way to explain it than I probably could have :)

It's true, though. I, and many others here, would be glad to help you with any problems during your projects, but you will be hard pressed to find someone who will outright do it for you, especially, like MrP said, with it being as involved as it is.

I can, however, point you in the right direction -- or, at least, where I would start looking.

First, to reiterate MrP again, you'd need the MySQL version of UTime. I'm on my phone so I can't provide the link but it shouldn't be hard to find.

Next, you'd either need to find an existing MySQL-based leaderboards system in the format you'd like, or create one from scratch if you have HTML, PHP, and CSS experience (which I don't but there are many online sources).

Then, you'd need to simply pull the information from the database on your web app and post it on the site.

Sounds much more complicated than it is. It's really just pushing data to a database with Lua, pulling said with PHP, and then using CSS && HTML/PHP to display that data in a readable format.

Again, much less complicated than it sounds, but we will be here along the way to help, that is if you decide to do it.

As an alternative, there's always Scriptfodder (or whatever it's called now).

iViscosity - Mod Developer

Sorry, you must of misunderstood, i wasn't at any point asking for someone to do it for me i was simply asking if if there was already a public one already available or if it could be done that way i specified in my second post, my Utime is already MySQL based, i will look into this, thank you
Releases / Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
« Last post by Decicus on January 15, 2019, 10:45:13 AM »
Folder name: TTT-Scoreboard-Ranks-for-ULX-1.1.1

Try changing it to something like: "ttt-scoreboard-ranks-for-ulx" - all lowercase
Releases / Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
« Last post by Hack4YouM8 on January 15, 2019, 10:44:15 AM »
Hmm... Does ULX work in general?
What is the scoreboard ranks folder named? I know there's a longstanding issue with Garry's Mod servers hosted on Linux and capital letters in addon foldernames.

Folder name: TTT-Scoreboard-Ranks-for-ULX-1.1.1
Pages: [1] 2 3 ... 10