Jump to content

Featured Replies

Posted

Hello guys, i'm trying to make an script to give items and get wich item the player used. Yours know if exists some natives how do that? And if yes can explain how they work?

Giving a player weapons can be accomplished like this:

Ped ped = new Ped("PED_MODEL_HERE"), new Vector3(100f, 100f, 100f), 100f);
ped.TempEnsureWeapon(WeaponHash.RevolverDoubleAction, -1, true);

For items, I think you should look through the NativeDB on this site searching for the "item" keyword.

This one looks promising, but there really isn't all that much documentation for red dead natives yet, so it will require trial and error to find exactly which native you want.

 

Everyone wants happiness, no one wants pain. But you can't have a rainbow, without a little rain.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...