Ulysses

General => Developers Corner => Topic started by: Merlin on August 02, 2018, 04:50:35 PM

Title: Help with Pointshop [SOLVED]
Post by: Merlin 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
Title: Re: Help with Pointshop
Post by: MrPresident on August 02, 2018, 06:11:52 PM
http://wiki.garrysmod.com/page/Player/IsUserGroup


ply:IsUserGroup("owner")

Title: Re: Help with Pointshop
Post by: Merlin 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.
Title: Re: Help with Pointshop
Post by: JamminR 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)
Title: Re: Help with Pointshop [SOLVED]
Post by: MrPresident 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.