Garry's Mod Leaks

ULX Rank weapon script

Submitted by AligatoR, , Thread ID: 203331

Thread Closed
13-04-2021, 07:06 AM
#1
This isn't a leak since this is my script but I thought I would throw it out there.

This is a simple script to give certain sweps/weapons to certain ULX ranks. To use this script edit the code pasted below for your results, if other code is altered the script may not work correctly.

Code:
local giveadminweapons = {
    ["Admin"] = {"weapon_physgun", "gmod_tool"},
    ["superadmin"] = {"weapon_physgun", "gmod_tool"},
["Moderator"] = {"weapon_physgun", "gmod_tool"},
["HOS"] = {"weapon_physgun", "gmod_tool"},
["Director"] = {"weapon_physgun", "gmod_tool"},

In a short explanation, the name in the [] brackets is your ULX rank (Keep the "") and the item names in the {} brackets are the item names. I found this script useful for servers that restrict all spawn items (physgun, toolgun, etc) in the settings.lua file and only give spawn items to staff members. I used this script for my Clone wars rp and it worked like it was supposed to.

https://www.mediafire.com/folder/w6yy2w5...ankweapons
This hidden content has been reported as still working 0 times this month.
1 times in total
Thanks
XERTiO
for upgrading me to Prime!

RE: ULX Rank weapon script

#2
Its nothing big but its still useful :^ Thanks for this <3

RE: ULX Rank weapon script

#3
I'm stupid what can you explain?

RE: ULX Rank weapon script

#4
thank you very much for sharing bro

Users browsing this thread: