Jump to content

how to keep an empty weapon in my hand?


cocowen

Recommended Posts

good morning,sir

i have found a nice resource named reload which allow play use r to reload ammo,i just want to make it better

i have played in a zombies d

server,in the server the empty weapon never disappear like single player game , and you can buy some ammo to fill it then the gun can use again, please tell me how to do it , or give me some example so i can learn from it,thank you

Link to comment

You need to either disable the weapon fire when the ammo reaches 1, so the weapon doesn't get destroyed ( use toggleControl ), or you can either attach the weapon object created using createObject to the player's hand bone. ( use attachElements or getPedBonePosition )

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