linnik

How to give a weapon to ped?

Recommended Posts

Note you have to do this every time you stream the ped in, also you can only do this IF the ped exists. (Ped.doesExist())

mp.game.invoke("0xBF0FD6E56C964FCB", Ped.handle,  mp.game.joaat("weapon_SpecialCarbine"), 100, 0, 1);

 

And to unfreeze;

mp.game.invoke("0x428CA6DBD1094446", Ped.handle, 0);

Edited by notsosmart

Share this post


Link to post
Share on other sites
3 hours ago, notsosmart said:

Note you have to do this every time you stream the ped in, also you can only do this IF the ped exists. (Ped.doesExist())

mp.game.invoke("0xBF0FD6E56C964FCB", Ped.handle,  mp.game.joaat("weapon_SpecialCarbine"), 100, 0, 1);

 

And to unfreeze;

mp.game.invoke("0x428CA6DBD1094446", Ped.handle, 0);

entity.freezePosition(false); should work on peds, wouldn't need to use the native.

Share this post


Link to post
Share on other sites

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.