mucuk6547 Posted December 22, 2018 Share Posted December 22, 2018 Friends hello can I help you how I can make one I want to put grenades in the gun. [MTA] Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,19,hitX, hitY, hitZ) end end ) Link to comment
mucuk6547 Posted December 23, 2018 Author Share Posted December 23, 2018 2 hours ago, Berko said: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,19,hitX, hitY, hitZ) end end ) can you be coded.I would appreciate if you put a grenade Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 2 hours ago, mucuk6547 said: can you be coded.I would appreciate if you put a grenade addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) Link to comment
mucuk6547 Posted December 23, 2018 Author Share Posted December 23, 2018 1 hour ago, Berko said: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) She doesn't write anything here. Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 32 minutes ago, mucuk6547 said: She doesn't write anything here. AdminPanel -> Resources/Excute Command:/(paste the code) addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) and click on client Link to comment
mucuk6547 Posted December 23, 2018 Author Share Posted December 23, 2018 1 hour ago, Berko said: AdminPanel -> Resources/Excute Command:/(paste the code) addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) and click on client I want it to be just mp5. can you help please Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 33 minutes ago, mucuk6547 said: I want it to be just mp5. can you help please addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) Link to comment
mucuk6547 Posted December 23, 2018 Author Share Posted December 23, 2018 1 hour ago, Berko said: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) now no bombs Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 (edited) 50 minutes ago, mucuk6547 said: now no bombs addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) just mp5 Edited December 23, 2018 by Berko fix Link to comment
mucuk6547 Posted December 23, 2018 Author Share Posted December 23, 2018 1 hour ago, Berko said: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) he throws all the guns still have the same problem 5 throwing bombs Link to comment
Berko Posted December 23, 2018 Share Posted December 23, 2018 (edited) Just now, mucuk6547 said: he throws all the guns still have the same problem Bro, I have asked to have a mp5 weapon just for which I have the power to throw grenades and I gave it to you through code grenades for all weapons: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) grenades for mp5: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) Edited December 23, 2018 by Berko </> Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now