Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat & Help and Support / Re: help ulx, lua
« Last post by MrPresident on July 29, 2020, 05:52:07 PM »
You were close. You just needed to call that function you created to teleport the player.
2
General Chat & Help and Support / Re: help ulx, lua
« Last post by MrPresident on July 29, 2020, 05:51:21 PM »
Code: Lua
  1. local CATEGORY_NAME = "admin"
  2.  
  3. function ulx.adminzone(ply)
  4.         local str = "#A tp admin zone"
  5.         ulx.fancyLogAdmin(ply, str)
  6.         adminzone( ply )       
  7. end
  8. local adminzone = ulx.command(CATEGORY_NAME, "ulx az", ulx.adminzone, "!az")
  9. adminzone:defaultAccess( ULib.ACCESS_ADMIN )
  10. adminzone:help( "tp admin zone" )
  11.  
  12.  
  13.  
  14. function adminzone( ply )
  15.         ply:SetPos(Vector(-1244.353638, 1044.383301, 80.597824)) -- admin zone position
  16. end
  17.  
3
General Chat & Help and Support / help ulx, lua
« Last post by $VDFOREVER on July 27, 2020, 08:24:14 AM »
Help in lua, I'm a complete zero, I need to move there when I execute (sorry google translate)
Code: Lua
  1. local CATEGORY_NAME = "admin"
  2.  
  3. function ulx.adminzone(ply)
  4.  
  5.                                 local str = "#A tp admin zone"
  6.                                 ulx.fancyLogAdmin(ply, str)                    
  7.         end
  8.  
  9. local adminzone = ulx.command(CATEGORY_NAME, "ulx az", ulx.adminzone, "!az")
  10. adminzone:defaultAccess( ULib.ACCESS_ADMIN )
  11. adminzone:help( "tp admin zone" )
  12.  
  13.  
  14.  
  15. function adminzone(ply)
  16.  
  17.         ply:SetPos(Vector(-1244.353638, 1044.383301, 80.597824)) -- admin zone position
  18. end
4
Developers Corner / Re: Force respawn and bring command?
« Last post by iViscosity on July 23, 2020, 01:17:37 AM »
A respawn command: https://github.com/cobalt77/Custom-ULX-Commands/blob/master/CustomCommands/lua/ulx/modules/sh/cc_util.lua#L602
A bring command: https://github.com/TeamUlysses/ulx/blob/master/lua/ulx/modules/sh/teleport.lua#L75

Can take the functionality of these and combine them into a new function, and make a command from that.
5
General Chat & Help and Support / Re: Help needed with ulx playsound
« Last post by Timmy on July 22, 2020, 11:44:50 AM »
Interesting. The error implies that the sound file is still not being sent to you.

Make sure your game client downloads custom content. In the game menu: click "Options", click the "Multiplayer" tab, select "Allow all custom files from server" from the dropdown.



ULX also provides an alternative method to add files for download:
  • Shut down your server.
  • Open <garrysmod>/data/ulx/downloads.txt with Notepad or a code editor.
  • Add sound/fun/loose.mp3 on a new line.
  • Save the file.
  • Restart your server.
6
General Chat & Help and Support / Re: Help needed with ulx playsound
« Last post by Charlie on July 20, 2020, 04:36:49 PM »
Hello, I have tried all the things you have suggested but I am still getting the same error
7
General Chat & Help and Support / Re: Help needed with ulx playsound
« Last post by Timmy on July 20, 2020, 11:21:14 AM »
Remove the slash before "sound".

Code: [Select]
resource.AddFile("sound/fun/loose.mp3")
This line goes in garrysmod/lua/autorun/server/workshop.lua
8
General Chat & Help and Support / Help needed with ulx playsound
« Last post by Charlie on July 19, 2020, 09:03:11 PM »
Hello, I am having issues with trying to get the ulx playsound command to work. I've looked at other threads and posts regarding this issue any I still haven't got it to work.
So, I have a sound file "loose.mp3" and have placed it in garrysmod/sound/fun/loose.mp3 .
I've added the
Code: [Select]
resource.AddFile("/sound/fun/loose.mp3") line into garrysmod/autorun/workshop.lua

I'm really not sure what I am doing wrong here, any help will be appreciated.

Thanks!

-----

My ULib/ULX versions are:
ULib v2.63w
ULX v3.73w

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

What appears in the console:
Code: [Select]
] ulx playsound fun/loose.mp3
[LC ULib ERROR] Received invalid sound
9
News / Re: Registration on forums limited to Steam accounts only
« Last post by Assasin on July 19, 2020, 03:16:32 PM »
 :(
10
General Chat & Help and Support / Re: No commands show up in !menu
« Last post by Timmy on July 17, 2020, 11:28:48 AM »
Again, the ULX menu will show/hide features depending on level of access.

By default, the "superadmin" group has full access.

So make sure you are in the "superadmin" group. I linked to instructions in my first post on this topic.
Pages: [1] 2 3 ... 10