mr.Extreme Posted April 2, 2014 Share Posted April 2, 2014 hello i made drop weapon but no work here my code server: function dropweapon(player) local x,y,z = getElementPosition(player) local weapon = getPedWeapon(player) local ammo = getPedTotalAmmo(player) takeWeapon(player, weapon, ammo) createPickup(x+4, y, z+1, weapon, 5000, ammo) end addCommandHandler("drop", dropweapon) Link to comment
WhoAmI Posted April 2, 2014 Share Posted April 2, 2014 What exactly doesn't work? Any errors in debugscript 3? Link to comment
mr.Extreme Posted April 2, 2014 Author Share Posted April 2, 2014 What exactly doesn't work? Any errors in debugscript 3? no there error takeWeapon work but createpickup no created Link to comment
cheez3d Posted April 2, 2014 Share Posted April 2, 2014 addCommandHandler("drop",function(player) local x,y,z = getElementPosition(player) local weapon,ammo = getPedWeapon(player),getPedTotalAmmo(player) takeWeapon(player,weapon,ammo) createPickup(x+4,y,z+1,2,weapon,5000,ammo) end) 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