Jump to content

grenade stuff.


Recommended Posts

Posted

Hey guys, i want that codes when the player fight with any gun then on every bullet a grenade or teargas or molotov it also in BASEMODE shops thanks.

F4MZM4.gif

Posted

We don't accept requests here.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I doubt there's a forum where you can simple request scripts and someone makes them for free.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Moderators
Posted (edited)
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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

Next time I wont help you. Because you are seriously lazy.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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...