Jump to content

grenade stuff.


Recommended Posts

  • Moderators
function weaponfire(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) 
    if not weapon <= 9 then  
    --x,y,z = getElementPosition(getLocalPlayer()) 
       x, y, z = getPedBonePosition ( getLocalPlayer(), 25 ) 
        if not createProjectile(getLocalPlayer(),16,x,y,z,400) then  
        end 
    end 
end 
  
addEventHandler("onClientPlayerWeaponFire", root, weaponfire) 

Wiki MTA > https://wiki.multitheftauto.com

easy to build.. I only don't know for sure if it works...

16 Grenade

17 Tear Gas Grenade

18 Molotov

19 Rocket (simple)

20 Rocket (heat seeking)

21 Air Bomb

39 Satchel Charge

58 Flare from hydra

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...