main = function()
Wait(500)
repeat
if IsButtonBeingPressed(0,0) then
PedSetWeapon(gplayer, 437)
GiveWeaponToPlayer(gplayer, 437)
Wait(1000)
PedSetWeapon(gplayer, 306)
GiveWeaponToPlayer(gplayer, 306)
Wait(1000)
PedSetWeapon(gplayer, 307)
GiveWeaponToPlayer(gplayer, 307)
GiveAmmoToPlayer(308, 12)
Wait(1000)
PedSetWeapon(gplayer, 305)
GiveWeaponToPlayer(gplayer, 305)
GiveAmmoToPlayer(316, 8)
Wait(1000)
GiveWeaponToPlayer(gplayer, 301)
GiveAmmoToPlayer(301, 5)
Wait(1000)
GiveWeaponToPlayer(gplayer, 320)
GiveAmmoToPlayer(320, 1)
Wait(1000)
end
if IsButtonBeingPressed(1,0) then
PedSetWeapon(gplayer, 372)
Wait(1000)
end
if IsButtonBeingReleased(14,0) then
PedSetWeapon(gplayer, 397)
Wait(1000)
end
Wait(0)
until not Alive
end