Recent Posts

Pages: [1] 2 3 ... 10
Off-Topic / Re: stuck in everything
« Last post by JamminR on Yesterday at 06:19:54 PM »
Off-Topic / stuck in everything
« Last post by ArSMaASMR on Yesterday at 12:09:01 PM »
so i started a prop hunt server i'm still new to servers but i wanted to try its going good with me but i have some problems with people getting stuck in things and whatever and  i wanted to know if there is a way to get a !stuck / !unstuck command or something like that i heard about it is it an addon or lua or something ( i'm new if i said something that doesn't make sense thats why ) i need help ASAP
Developers Corner / Re: Banning player for getting SA group
« Last post by JamminR on Yesterday at 09:56:44 AM »
It's challenging to know how to fix something if we can't see what's broken.
Do you have code to show us, along with errors that occur in console when that code runs?
Developers Corner / Banning player for getting SA group
« Last post by ErrO™ on Yesterday at 01:28:44 AM »
Hey, I'm trying to make script that bans player if he is not in  list of allowed superadmins and he somehow gets superadmin  group.

Script is not working, how do I fix it?

Code: Text
Developers Corner / Re: Executing ULX commands on server startup
« Last post by Splitzle on July 22, 2017, 03:18:23 PM »
I made the file like you said, but now this appears in the server console -

Code: [Select]
Warning: Player issued command but is now vanished (Command was ""randommap"")
Is it confusing the command with a player issued command?
Developers Corner / MOVED: Job Suggestions?
« Last post by MrPresident on July 22, 2017, 02:06:08 PM »
Developers Corner / Re: Executing ULX commands on server startup
« Last post by iViscosity on July 22, 2017, 01:10:01 PM »
You could use an GM:Initialize hook inside a ULX modules folder for example,
Code: [Select]
addons/your_custom_name/ulx/modules/sv/randommap.lua to make sure that ULX is initialized before it is loaded.

Code: Lua
  1. local function randomMap() -- Arguments are not required unless you want to call this function directly from a ULX command
  2.     RunConsoleCommand( "ulx", "randommap" )
  3. end
  4. hook.Add( "Initialize", "Random Map on Startup", randomMap )
So you had it correct, just without something to tell it to run (the hook). Anything in 'autorun' directory is loaded automatically, but you need something to tell it to actually run.
Developers Corner / Executing ULX commands on server startup
« Last post by Splitzle on July 22, 2017, 12:01:18 PM »
How would I go about doing this? If I put "+ulx command" in the server batch file, it will not recognize it as a command since it is executed before ulx/ulib are able to load. I read that I could put a lua file in the lua/autorun/server directory and I tried my best to make one, but I am not very good at lua to begin with.

Code: [Select]
local function RandomMap ( changeTo, ply ) --No idea if these are correct or needed

RunConsoleCommand("ulx", "randommap")


I'm trying to do the "ulx randommap" command on startup. No errors were shown in console when I started it, so now I need help. Here is the RandomMap module if that helps.
Off-Topic / Job Suggestions?
« Last post by [EG]NationalGamers on July 22, 2017, 01:21:09 AM »
Hello, I'm creating a server for Garry's Mod and would like some suggestions on classes. Here's the ones listed below;

- Citizen
- Pickpocket
- Kidnapper
- Rapist
- Taxi Driver
- Businessman
- Garbage Man
- Thief
- Police Officer
- Police Sergeant
- Police Chief
- FBI Agent
- SWAT Member
- SWAT Medic
- SWAT Solider
- SWAT Leader
- Hobo Leader
- Hobo
- Master Thief
- Assassin
- Hitman
- Meth Manufacture
- Cocaine Manufacture
- Gun Dealer
- Blackmarket Dealer
- Lord of War
- Firefighter
Developers Corner / Re: Having Lua error
« Last post by Timmy on July 21, 2017, 11:18:05 PM »
For sure! Have a look at the following function: Player:GetPlayerColor.

Though the name of this function is a bit misleading, because Player:GetPlayerColor doesn't return a Color but a Vector! You still have to convert it ToColor.
Pages: [1] 2 3 ... 10