• Certain weapons "locked" on my server, how to unlock them?
    4 replies, posted
Hey guys, so I'm running a Gmod server just for me and friend to mess around on. Anyways, I downloaded this nuke pack, and got my friend to do that same. I can spawn them fine in single and multiplayer, but my friend can only spawn them in singleplayer, and not when he's on my server. I noticed the ones he cannot spawn while in my server have a "shield" icon on the top corner of the spawn icon. I'm guessing this has something to do with it. So is there any way to "unlock" these weapons/entities so both me (server operator) AND people on my server can spawn/use them? Sorry for the mingebag question
Items with a shield icon can only be spawned by people who are the server operator or designated an admin by the server operator. You can add your friend as an admin by going into steam/steamapps/username/garrysmod/garrysmod/settings/users.txt and adding to the bottom of the file: [code]"superadmin" { "friend's steam username" "friend's steamID" } [/code]
Easyest way to do that is to mod the lua files its quite easy For example for the Manhack gun i would do find the lua file "C:\Program Files\Steam\steamapps\<account name>\garrysmod\garrysmod\gamemodes\sandbox\entities\weapons\manhack_welder\shared.lua" ( yours should be in addons/nukepack/lua (or something)) Find a file called shared.lua edit [lua] // Variables that are used on both client and server SWEP.Author = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "Shoot a prop to attach a Manhack.\nRight click to attach a rollermine." SWEP.Spawnable = false (change this to true) SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" [/lua] set spawnable to true
Thank you both for you quick replies, I really appreciate the help :) I'm gonna go try those ideas, and hopefully it'll work xP Again, thanks for your help
[QUOTE=ColdFusion;21352772]Easyest way to do that is to mod the lua files its quite easy For example for the Manhack gun i would do find the lua file "C:\Program Files\Steam\steamapps\<account name>\garrysmod\garrysmod\gamemodes\sandbox\entities\weapons\manhack_welder\shared.lua" ( yours should be in addons/nukepack/lua (or something)) Find a file called shared.lua edit [lua] // Variables that are used on both client and server SWEP.Author = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "Shoot a prop to attach a Manhack.\nRight click to attach a rollermine." SWEP.Spawnable = false (change this to true) SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" [/lua] set spawnable to true[/QUOTE] Yeah but you gotta do that for every addon. It's much easier to just add his friend as an admin.
Sorry, you need to Log In to post a reply to this thread.