Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
awesomeness1jake

How can I attach a prop to a player

Recommended Posts

awesomeness1jake

How would I be able what code would it be I wanna attach a prop to the players hand

Share this post


Link to post
Share on other sites
alloc8or

ATTACH_ENTITY_TO_ENTITY(Entity entity1, Entity entity2, int boneIndex, float x, float y, float z, float xRot, float yRot, float zRot, BOOL p9, BOOL isRel, BOOL ignoreUpVec, BOOL allowRotation, int unk, BOOL p14)

 

Bone enum

 

 

enum eBone{    SKEL_ROOT = 0x0,    SKEL_Pelvis = 0x2e28,    SKEL_L_Thigh = 0xe39f,    SKEL_L_Calf = 0xf9bb,    SKEL_L_Foot = 0x3779,    SKEL_L_Toe0 = 0x83c,    IK_L_Foot = 0xfedd,    PH_L_Foot = 0xe175,    MH_L_Knee = 0xb3fe,    SKEL_R_Thigh = 0xca72,    SKEL_R_Calf = 0x9000,    SKEL_R_Foot = 0xcc4d,    SKEL_R_Toe0 = 0x512d,    IK_R_Foot = 0x8aae,    PH_R_Foot = 0x60e6,    MH_R_Knee = 0x3fcf,    RB_L_ThighRoll = 0x5c57,    RB_R_ThighRoll = 0x192a,    SKEL_Spine_Root = 0xe0fd,    SKEL_Spine0 = 0x5c01,    SKEL_Spine1 = 0x60f0,    SKEL_Spine2 = 0x60f1,    SKEL_Spine3 = 0x60f2,    SKEL_L_Clavicle = 0xfcd9,    SKEL_L_UpperArm = 0xb1c5,    SKEL_L_Forearm = 0xeeeb,    SKEL_L_Hand = 0x49d9,    SKEL_L_Finger00 = 0x67f2,    SKEL_L_Finger01 = 0xff9,    SKEL_L_Finger02 = 0xffa,    SKEL_L_Finger10 = 0x67f3,    SKEL_L_Finger11 = 0x1049,    SKEL_L_Finger12 = 0x104a,    SKEL_L_Finger20 = 0x67f4,    SKEL_L_Finger21 = 0x1059,    SKEL_L_Finger22 = 0x105a,    SKEL_L_Finger30 = 0x67f5,    SKEL_L_Finger31 = 0x1029,    SKEL_L_Finger32 = 0x102a,    SKEL_L_Finger40 = 0x67f6,    SKEL_L_Finger41 = 0x1039,    SKEL_L_Finger42 = 0x103a,    PH_L_Hand = 0xeb95,    IK_L_Hand = 0x8cbd,    RB_L_ForeArmRoll = 0xee4f,    RB_L_ArmRoll = 0x1470,    MH_L_Elbow = 0x58b7,    SKEL_R_Clavicle = 0x29d2,    SKEL_R_UpperArm = 0x9d4d,    SKEL_R_Forearm = 0x6e5c,    SKEL_R_Hand = 0xdead,    SKEL_R_Finger00 = 0xe5f2,    SKEL_R_Finger01 = 0xfa10,    SKEL_R_Finger02 = 0xfa11,    SKEL_R_Finger10 = 0xe5f3,    SKEL_R_Finger11 = 0xfa60,    SKEL_R_Finger12 = 0xfa61,    SKEL_R_Finger20 = 0xe5f4,    SKEL_R_Finger21 = 0xfa70,    SKEL_R_Finger22 = 0xfa71,    SKEL_R_Finger30 = 0xe5f5,    SKEL_R_Finger31 = 0xfa40,    SKEL_R_Finger32 = 0xfa41,    SKEL_R_Finger40 = 0xe5f6,    SKEL_R_Finger41 = 0xfa50,    SKEL_R_Finger42 = 0xfa51,    PH_R_Hand = 0x6f06,    IK_R_Hand = 0x188e,    RB_R_ForeArmRoll = 0xab22,    RB_R_ArmRoll = 0x90ff,    MH_R_Elbow = 0xbb0,    SKEL_Neck_1 = 0x9995,    SKEL_Head = 0x796e,    IK_Head = 0x322c,    FACIAL_facialRoot = 0xfe2c,    FB_L_Brow_Out_000 = 0xe3db,    FB_L_Lid_Upper_000 = 0xb2b6,    FB_L_Eye_000 = 0x62ac,    FB_L_CheekBone_000 = 0x542e,    FB_L_Lip_Corner_000 = 0x74ac,    FB_R_Lid_Upper_000 = 0xaa10,    FB_R_Eye_000 = 0x6b52,    FB_R_CheekBone_000 = 0x4b88,    FB_R_Brow_Out_000 = 0x54c,    FB_R_Lip_Corner_000 = 0x2ba6,    FB_Brow_Centre_000 = 0x9149,    FB_UpperLipRoot_000 = 0x4ed2,    FB_UpperLip_000 = 0xf18f,    FB_L_Lip_Top_000 = 0x4f37,    FB_R_Lip_Top_000 = 0x4537,    FB_Jaw_000 = 0xb4a0,    FB_LowerLipRoot_000 = 0x4324,    FB_LowerLip_000 = 0x508f,    FB_L_Lip_Bot_000 = 0xb93b,    FB_R_Lip_Bot_000 = 0xc33b,    FB_Tongue_000 = 0xb987,    RB_Neck_1 = 0x8b93,    IK_Root = 0xdd1c};

 

 

 

Share this post


Link to post
Share on other sites
TuckerW2001

BTW if you use the bone index you cant just use the bone enums you have to also use in place of boneIndex PED::GET_PED_BONE_INDEX(bone Enum)

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.