Author Topic: Help with Pointshop [SOLVED]  (Read 2243 times)

0 Members and 1 Guest are viewing this topic.

Offline Merlin

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Help with Pointshop [SOLVED]
« on: August 02, 2018, 04:50:35 PM »
Alright, so changing the code ply:IsSuperAdmin just breaks things or maybe I didn't use the correct function, dunno, but maybe somebody knows how to configure the admin tab to only open for ONE ULX Group (That being Owner in my case)

I've tried using one player function I found somewhere using ULX for one group, forgot what the whole function was though.

The only reference I could find of ply:IsSuperAdmin is 5 in the sv_init.lua file that comes within the original Pointshop V1 addon. (ply:IsSuperAdmin) is the function i'm trying to change.

Here's a pastebin link of the whole sv_init.lua file: https://pastebin.com/wrGg970g
« Last Edit: August 02, 2018, 07:08:35 PM by Merlin »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help with Pointshop
« Reply #1 on: August 02, 2018, 06:11:52 PM »

Offline Merlin

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Help with Pointshop
« Reply #2 on: August 02, 2018, 07:06:52 PM »
Oh my god, thank you so much, i've been looking for this answer for who knows how long.

It worked perfectly. I'm no developer but that should've been way easier for me to figure out on my own, guess i'm just not that smart.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help with Pointshop
« Reply #3 on: August 02, 2018, 10:08:21 PM »
guess i'm just not that smart.

Intelligence isn't a good comparison for experience.
(you're likely Smart, we just have too many years of Gmod Lua in our veins)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help with Pointshop [SOLVED]
« Reply #4 on: August 03, 2018, 06:42:32 AM »
lol.. it's true.. also acquaint yourself with the official wiki. It's pretty easy to use and has tons of info on it.


Personally, I've been doing gmod coding for well over 10 years, so don't worry too much about it. :) We all start somewhere.