Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other Semi-Popular First Person Shooter Hacks › DayZ Mod & Standalone Hacks & Cheats › DayZ Help & Requests › Need help with script

Need help with script

Posts 1–4 of 4 · Page 1 of 1
SH
sharkeel
Need help with script
So i downloaded crinkly's twisted menu edit, but the give ammo option doesn't work and when i spawn a gun in it only gives me 1 clip.
Here is the code for the give ammo
Give ammo:
_unit = _this select 0;
_weapon = currentWeapon _unit;
_cfg = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);


Can anyone help? I tried several things but i'm a n00b and i don't know why the hell it isnt working. Help would be much appreciated
#1 · 13y ago
typh0
typh0
Quote Originally Posted by sharkeel View Post
So i downloaded crinkly's twisted menu edit, but the give ammo option doesn't work and when i spawn a gun in it only gives me 1 clip.
Here is the code for the give ammo
Give ammo:
_unit = _this select 0;
_weapon = currentWeapon _unit;
_cfg = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);
_unit addMagazine (_cfg select 0);


Can anyone help? I tried several things but i'm a n00b and i don't know why the hell it isnt working. Help would be much appreciated
I havnt seen anything written like that
Code:
_unit = _this select 0;
that would only be used for taking a value from an array.

try this

Code:
_weapon = currentWeapon player;
_cfg = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
player addMagazine (_cfg select 0);
player addMagazine (_cfg select 0);
player addMagazine (_cfg select 0);
player addMagazine (_cfg select 0);
player addMagazine (_cfg select 0);
#2 · 13y ago
SH
sharkeel
Hmm i will. Thanks.

Brilliant! You helped a lot mate. Thank you!
#3 · edited 13y ago · 13y ago
Jim Morrison
[MPGH]Jim Morrison
Quote Originally Posted by sharkeel View Post
Hmm i will. Thanks.

Brilliant! You helped a lot mate. Thank you!
Solved.
/Closed
#4 · 13y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Need help with my ScriptBy hannemannen in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    8Last post 14y ago
  • need help with weapond scriptBy pepelas2 in WarRock Help
    2Last post 15y ago
  • need help with rs scriptsBy Idrawheart in Runescape Hacks / Bots
    1Last post 15y ago
  • Need help with an AHK scriptBy Arrowins in Call of Duty Modern Warfare 2 Help
    1Last post 15y ago
  • Need A little help with Scripting, botBy kagome in Vindictus Help
    4Last post 15y ago

Tags for this Thread

None