Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat & Help and Support / Re: ULX Commands Not Working
« Last post by HappyFedora on Today at 06:13:06 AM »
It does it every time, even with other commands now. Like fun commands etc
2
General Chat & Help and Support / Re: ULX Commands Not Working
« Last post by MrPresident on Today at 05:23:37 AM »
Does it do it EVERY time? is the group you're trying to make 1 word?
3
General Chat & Help and Support / Re: ULX Commands Not Working
« Last post by HappyFedora on Yesterday at 10:14:11 AM »
Nothing, console works. But the actual ULX menu and the chat commands don't work, they come up with that. (the Usage thing)
4
General Chat & Help and Support / Re: ULX Commands Not Working
« Last post by MrPresident on Yesterday at 09:29:14 AM »
What are you trying to type in your console to do this?
5
General Chat & Help and Support / ULX Commands Not Working
« Last post by HappyFedora on Yesterday at 07:49:46 AM »
So I am trying to make some usergroups for this server, however I can't seem to do it. I have reinstalled ULX + ULib and it seems to have no effect.

Everytime I try and do it, it says the Usage in chat. (e.g: Usage: ulx addgroup <group> [<inherits from>] - Create a new group with optional inheritance.)

My ULib/ULX versions:
ULib v2.63d
ULX v3.73d

Game mode(s) I am having this problem on: DarkRP

Please help.

EDIT: I have tried with a few other commands, they keep giving me the Usage issue.
6
Developers Corner / Re: I need help with permissions per team
« Last post by KiddleyWiffers on August 18, 2018, 06:54:16 PM »
For this you need the function to check a player's team.

but in your code you could do something like this..


Code: [Select]
if ply:GetPlayerTeam() == "TEAM_GUARD" or ply:GetPlayerTeam() == "TEAM_CHAOS" then
   >>code to open gate here<<
end

Obviously you need to replace the ply:GetPlayerTeam() with the function provided by the gamemode for getting their team.

I have been messing with this for a few days and still can't get it to work. This is what I have so far.
Code: [Select]
---[Open gate a]-------------------------------------------------------------------------
function ulx.opengatea(calling_play, should_silent)
    if ply:GTeam() == TEAM_GUARD or ply:GTeam() == TEAM_CHAOS then // Team check for the gamemode
        game.ConsoleCommand("ulx ent_fire gate_containment_door_r open\n") // The two commands I used to open Gate A
        game.ConsoleCommand("ulx ent_fire gate_containment_door_l open\n")
    end
end

local opengatea = ulx.command(CATEGORY_NAME, "ulx opengatea", ulx.opengatea, "!opengatea")
opengatea:defaultAccess(ULib.ACCESS_SUPERADMIN)
opengatea:help("Open Gate A (ONLY MTF and CI).")
---[End]----------------------------------------------------------------------------------------
---[Admin Open gate a]-------------------------------------------------------------------------
function ulx.adminopengatea(calling_play)
        game.ConsoleCommand("ulx ent_fire gate_containment_door_r open\n")
        game.ConsoleCommand("ulx ent_fire gate_containment_door_l open")
    end

local adminopengatea = ulx.command(CATEGORY_NAME, "ulx adminopengatea", ulx.adminopengatea, "!adminopengatea")
adminopengatea:defaultAccess(ULib.ACCESS_SUPERADMIN)
adminopengatea:help("Open Gate A as any class.")
---[End]----------------------------------------------------------------------------------------
The command worked before, but not even adminopengatea is working now, which is just a copy and past of my first command. The ent_fire command opens it when I use it on its own, and the door opens, but the actual commands I have set up for it don't work.
7
Developers Corner / Re: Stop MOTD from Opening for x Seconds?
« Last post by Zarken on August 18, 2018, 02:13:38 PM »
Hey, I only have a timer on the custom spawn menu anyhow, so a timer would be perfect. I just cannot find where to put it :S
8
Developers Corner / Re: Stop MOTD from Opening for x Seconds?
« Last post by JamminR on August 18, 2018, 12:50:12 PM »
You could use timer.simple, but that probably isn't best method for waiting. It would be better if you use a method to detect when the close button is pressed. Sorry I can't do the research to link how right now, I'm not at my normal computer setup this week.
9
Developers Corner / Stop MOTD from Opening for x Seconds?
« Last post by Zarken on August 18, 2018, 10:02:21 AM »
Is there a way to stop the MOTD from opening on "PlayerInitialSpawn" for x amount of seconds?

I'm looking to code my own spawn menu, and dont want the motd to open till after my menu has closed.

Thanks!
10
Developers Corner / Re: Physgun Freeze Players
« Last post by JamminR on August 13, 2018, 07:51:08 PM »
Whatever gets made would in all likelihood break and or conflict with ULX.
Pages: [1] 2 3 ... 10