• ULX Group Swep
    1 replies, posted
Hello on my server I wish to implement a Donater group. Im using the newest ULX version. I know how to make the group and give it things such as votekick but how would I go about making it so that once you become a "donater" everything you spawn you get a certian swep such as BuddyFinder. Im using DarkRP as a gamemode and I don't know if that would conflict it or not.
[lua] local DonatorWeapons = {"weapon_ak47", "weapon_mp5", "weapon_crowbar", "weapon_deagle"} local function GiveDonatorWeps( ply ) if ply:IsUserGroup("donator") then for k, v in pairs( DonatorWeapons ) do ply:Give( v ) end end end hook.Add("PlayerLoadout", "GiveDonatorWeps", GiveDonatorWeps) [/lua]
Sorry, you need to Log In to post a reply to this thread.