I want to introduce donor boxes to my server so I thought I would make a script where I scroll wheel it verifys against my UID and click one of the options it executes a script spawning a box on my location with lots of goodies.
I have made the script to spawn the box that needs to be executed
if (isServer) then { _vehicle_999999 = objNull; if (true) then { _this = createVehicle ["USBasicAmmunitionBox_EP1", [8000.0,10000.0], [], 0, "CAN_COLLIDE"]; _vehicle_999999 = _this; _this setDir 20; clearWeaponCargoGlobal _this; clearMagazineCargoGlobal _this; _this addWeaponCargoGlobal [ItemToolbox",10]; _this addWeaponCargoGlobal [ItemCrowbar",10]; _this addWeaponCargoGlobal ["ItemChainsaw",2]; _this addMagazineCargoGlobal ["30m_plot_kit",1]; _this addMagazineCargoGlobal ["cinder_door_kit",15]; _this addMagazineCargoGlobal ["cinder_garage_kit",15]; _this addMagazineCargoGlobal ["MortarBucket",150]; _this addMagazineCargoGlobal ["CinderBlocks",250]; _this addMagazineCargoGlobal ["cinder_wall_kit",100]; _this addMagazineCargoGlobal ["metal_floor_kit",100]; _this addMagazineCargoGlobal ["ItemPole",100]; _this addMagazineCargoGlobal ["ItemTankTrap",100]; _this addMagazineCargoGlobal ["ItemVault",5]; _this addMagazineCargoGlobal ["ItemLockbox",5]; _this addMagazineCargoGlobal ["bult_ItemSandbag",15]; _this addMagazineCargoGlobal ["ItemWoodWallLg",50]; _this addMagazineCargoGlobal ["ItemWoodFloor",50]; _this addMagazineCargoGlobal ["ItemWoodLadder",15]; _this addMagazineCargoGlobal ["ItemComboLock",10]; _this addMagazineCargoGlobal ["ItemJerryCan",3]; _this addMagazineCargoGlobal ["ItemMixOil",5]; _this addMagazineCargoGlobal ["desert_large_net_kit",3]; _this addMagazineCargoGlobal ["ItemBriefcase100oz",5]; _this addMagazineCargoGlobal ["Skin_Sniper1_DZ",10]; _this addMagazineCargoGlobal ["ItemComboLock",10]; _this addMagazineCargoGlobal ["ItemComboLock",10]; }; };
But I don't know where to start with the scroll wheel. Help!