• Swep Help
    9 replies, posted
Hello. I am just wondering how to find workshop swep model paths, entity names, and how to put them in classes. So let's say I want to have the gun dealer sell some of the guns I have in my addons. How exactly do I do that? Thanks. -Regards
[QUOTE=Mr.Mezzy;44097985]Hello. I am just wondering how to find workshop swep model paths, entity names, and how to put them in classes. So let's say I want to have the gun dealer sell some of the guns I have in my addons. How exactly do I do that? Thanks. -Regards[/QUOTE] Use Gmad and look in the folders or subscribe to the workshop addon and when in sandbox goto addons in the bottom left in the spawn menu and right click - copy and you will get the model path Same with ent names goto weapons and click copy
Thank you that definetley helps regarding the model but I also need the entity name. Thank for the help though.
[QUOTE=Mr.Mezzy;44098245]Thank you that definetley helps regarding the model but I also need the entity name. This is just an example: AddCustomShipment("Sniper rifle", "models/weapons/w_snip_g3sg1.mdl", "ls_sniper", 0, 10, true, 700, true, {TEAM_GUN}) Need ^ Need ^ Thank for the help though.[/QUOTE] For darkrp entity names if your using the FAdmin scoreboard (default) goto give weapon and there's a list of weapons you can spawn, there's a section for rp_keys and ls_sniper for example Otherwise just go through the addon directory and look in entities/weapons
You can either go in the addons and do what I did for m9k and look in lua/entities/weapons to find the entity names, or while in game, go to the admin weapon spawning menu and right click the desired weapon and click Copy to Clipboard. For the entity names in the folder, the folder names are the entity names. For example, the m9k_minigun folder is the m9k_minigun entity.
[QUOTE=AGFlav;44098258]For darkrp entity names if your using the FAdmin scoreboard (default) goto give weapon and there's a list of weapons you can spawn, there's a section for rp_keys and ls_sniper for example Otherwise just go through the addon directory and look in entities/weapons[/QUOTE] Ok I understand that but when I go into the weapons I see many things but I can't find the proper entity name.
[QUOTE=Mr.Mezzy;44098402]Ok I understand that but when I go into the weapons I see many things but I can't find the proper entity name.[/QUOTE] You have to find the weapon you want the entity name for, and right click that and click copy to clipboard. After that, paste it anywhere you can type and it should show the entity name.
[QUOTE=ZerK;44098321]You can either go in the addons and do what I did for m9k and look in lua/entities/weapons to find the entity names, or while in game, go to the admin weapon spawning menu and right click the desired weapon and click Copy to Clipboard. For the entity names in the folder, the folder names are the entity names. For example, the m9k_minigun folder is the m9k_minigun entity.[/QUOTE] Ahhh thank you! And there is one more thing when naming the weapon in addentities when you add it to gun dealer on darkrp where do you find the proper name?
[QUOTE=Mr.Mezzy;44098410]Ahhh thank you! And there is one more thing when naming the weapon in addentities when you add it to gun dealer on darkrp where do you find the proper name?[/QUOTE] Someone correct me if I'm wrong, but when naming it, it can be anything you want. EDIT: However, you still have to have a proper model and the right entity name.
[QUOTE=Mr.Mezzy;44098410]Ahhh thank you! And there is one more thing when naming the weapon in addentities when you add it to gun dealer on darkrp where do you find the proper name?[/QUOTE] Oh well that's good to know. Sorry if this is just common sense. I started developing my server 2 days ago.
Sorry, you need to Log In to post a reply to this thread.