Jump to content

Recommended Posts

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?

Posted

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...