CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How do I display the weapon strings in a mod menu? Black Ops 3 GSC Script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TotalModzHD" data-source="post: 29425" data-attributes="member: 27376"><p>So I have been trying (and failing) to get this menu I'm making to list the weapons automatically via an array. Problem is, the weapon name is blank in the menu but if I click the option it will still give the weapon. Below is what my script looks like right now.</p><p></p><p>[CODE]standard = GetArrayKeys(level.zombie_weapons);</p><p>for(i = 0; i < standard.size; i++)</p><p>{</p><p> self addOpt("standard", standard[i], &zm_weapons::weapon_give, standard[i]);</p><p>}[/CODE]</p><p></p><p>It's based on CabCon's menu base so the first parameter of addOpt is the menu to add the option to, the second is the string (which is where the problem is), the third is the function to call and the fourth is the arguments to pass to the function.</p></blockquote><p></p>
[QUOTE="TotalModzHD, post: 29425, member: 27376"] So I have been trying (and failing) to get this menu I'm making to list the weapons automatically via an array. Problem is, the weapon name is blank in the menu but if I click the option it will still give the weapon. Below is what my script looks like right now. [CODE]standard = GetArrayKeys(level.zombie_weapons); for(i = 0; i < standard.size; i++) { self addOpt("standard", standard[i], &zm_weapons::weapon_give, standard[i]); }[/CODE] It's based on CabCon's menu base so the first parameter of addOpt is the menu to add the option to, the second is the string (which is where the problem is), the third is the function to call and the fourth is the arguments to pass to the function. [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
How do I display the weapon strings in a mod menu? Black Ops 3 GSC Script
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top