Recent Posts

Pages: [1] 2 3 ... 10
1
General Chat & Help and Support / Re: motd.txt showing a website.
« Last post by Cupnugget209 on Yesterday at 11:21:20 PM »
Found it thanks, had to enable the groups permissions for it.
2
General Chat & Help and Support / Re: motd.txt showing a website.
« Last post by Cupnugget209 on Yesterday at 11:19:51 PM »


There is no ULX MOTD setting under my server settings tab, i literally fresh installed ulx a week ago and everything is default.
3
General Chat & Help and Support / Re: ULib.ucl.userAllow trouble.
« Last post by BlueNova on Yesterday at 09:53:32 PM »
I placed it in the ulib modules directory and the same error occurred.

Quote
[ERROR] addons/ulx/lua/ulib/modules/pttt_admin.lua:175: attempt to call field 'userAllow' (a nil value)
  1. unknown - addons/ulx/lua/ulib/modules/pttt_admin.lua:175
   2. unknown - lua/includes/modules/concommand.lua:54
4
General Chat & Help and Support / Re: ULib.ucl.userAllow trouble.
« Last post by MrPresident on Yesterday at 09:25:03 PM »
ULib modules is where it should go so that it loads after UCL and ULib initialize.

If you just put it in lua/autorun it might try and run/load before ULib and that would cause the errors you are seeing.
5
General Chat & Help and Support / Re: ULib.ucl.userAllow trouble.
« Last post by BlueNova on Yesterday at 09:23:45 PM »
Perhaps it is the location of it.

I'll put it in the ulib modules directory and come back with results.
6
General Chat & Help and Support / Re: ULib.ucl.userAllow trouble.
« Last post by JamminR on Yesterday at 09:11:28 PM »
This is just my guess at this (for me) late hour.
Are you sure this code is loading after ULib?
You place it in Autorun. It might be running too early.
If you're using ULib, to guarantee ULib is loading it's functions, I'd use ULib modules folder to initialize this (or a separate file to initialize your ULib specific code files, like we do for ULX "addons/ulx/lua/ulib/modules/ulx_init.lua"
7
General Chat & Help and Support / ULib.ucl.userAllow trouble.
« Last post by BlueNova on Yesterday at 08:16:16 PM »
I've been working on a script for the past few days that automatically assigns permissions to certain Steam IDs when the command is issued.
The only issue is that I'm getting some backtalk from ULib.ucl.userAllow

The error is as follows
Quote
[ERROR] lua/autorun/pttt_admin.lua:174: attempt to call field 'userAllow' (a nil value)
  1. unknown - lua/autorun/pttt_admin.lua:174
   2. unknown - lua/includes/modules/concommand.lua:54

And the relevant lines are
Code: Lua
  1.     if table.HasValue( rootadmin_id, ply:SteamID() ) then
  2.         local root = ply:SteamID()
  3.         ULib.ucl.userAllow( root, rootadmin_perms, false )
  4.     else
  5.         return false
  6.     end
  7.  
  8.     if table.HasValue( superadmin_id, ply:SteamID() ) then
  9.         local super = ply:SteamID()
  10.         ULib.ucl.userAllow( super, superadmin_perms, false )
  11.     else
  12.         return false
  13.     end

If you need more from the script then I can provide everything though I don't think the rest is relevant to the isssue. Thanks in advance.
8
Off-Topic / Re: Looking to expand Lua knowledge.
« Last post by MrPresident on Yesterday at 08:11:36 PM »
github is also publicly indexed by google, so it's not really a good idea to put someone else's code on there just for your own personal use. Why don't you look into setting up an hg repository on your own system if you're only using it for versioning and not for collaboration. We (G4P - my other community) used to use something like that, but I don't remember what it was as it wasn't me who set it up.

So yes, please take my code off your public git. Sorry.
9
General Chat & Help and Support / Re: motd.txt showing a website.
« Last post by iViscosity on Yesterday at 07:55:54 PM »
10
General Chat & Help and Support / motd.txt showing a website.
« Last post by Cupnugget209 on Yesterday at 06:41:26 PM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console):
ULib v2.61d (10/26/16)
ULX v3.71d (01/29/17)

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

Lua errors shown in console, if any:
Code: [Select]
<insert errors here>

I was wondering how to make the motd preview a webpage. Im not sure how to do it since the motd.txt file was moved into the data folder. Thank you.
Pages: [1] 2 3 ... 10