CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Join the GTA5 Modding Facebook Group!
Join our facebook group now and discuss, request and browse the latest modded GTA5 Mods
Forums
Gaming
Grand Theft Auto 5
Grand Theft Auto 5 PC
Looking for help with a problem im having
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NotEmoji" data-source="post: 51860" data-attributes="member: 243655"><p>Hello i have been working on a gta menu on the bigbase i have ran into a small problem with a native that i cant get or understand why its doing this</p><p></p><p>when making a function with the native</p><p><span style="font-size: 22px"><strong>GET_PED_LAST_WEAPON_IMPACT_COORD</strong></span></p><p>when calling it in for like teleport gun the cords always end up as 0, 0 ,0 i have looked around and cant seem to find a fix</p><p>but it happens with all impact cord options</p><p>this is the code im using for teleport gun</p><p>bool teleportGunBool = false;</p><p>void teleportGun(){</p><p>Ped Player = PLAYER:<img src="/styles/default/xenforo/smilies.emoji/people/stuck_out_tongue_winking_eye.emoji.svg" class="smilie" loading="lazy" alt=":tonguewink:" title="Tongue Wink :tonguewink:" data-shortname=":tonguewink:" />LAYER_PED_ID();</p><p>if (PED::IS_PED_SHOOTING(Player))</p><p> {</p><p> Vector3 Coords;</p><p> if (WEAPON::GET_PED_LAST_WEAPON_IMPACT_COORD(Player, &Coords))</p><p> ENTITY::SET_ENTITY_COORDS(Player, Coords.x, Coords.y, Coords.z, 0, 0, 0, 0);</p><p> }</p><p>}</p><p></p><p>this is what the vector3 looks like</p><p>struct Vector3</p><p> {</p><p> float x{};</p><p> float y{};</p><p> float z{};</p><p> }</p><p>and</p><p>struct Vector3</p><p> {</p><p> float x;</p><p> DWORD _paddingx;</p><p> float y;</p><p> DWORD _paddingy;</p><p> float z;</p><p> DWORD _paddingz;</p><p> } this one didnt work but i wasnt expecting it to</p></blockquote><p></p>
[QUOTE="NotEmoji, post: 51860, member: 243655"] Hello i have been working on a gta menu on the bigbase i have ran into a small problem with a native that i cant get or understand why its doing this when making a function with the native [SIZE=6][B]GET_PED_LAST_WEAPON_IMPACT_COORD[/B][/SIZE] when calling it in for like teleport gun the cords always end up as 0, 0 ,0 i have looked around and cant seem to find a fix but it happens with all impact cord options this is the code im using for teleport gun bool teleportGunBool = false; void teleportGun(){ Ped Player = PLAYER::tonguewink:LAYER_PED_ID(); if (PED::IS_PED_SHOOTING(Player)) { Vector3 Coords; if (WEAPON::GET_PED_LAST_WEAPON_IMPACT_COORD(Player, &Coords)) ENTITY::SET_ENTITY_COORDS(Player, Coords.x, Coords.y, Coords.z, 0, 0, 0, 0); } } this is what the vector3 looks like struct Vector3 { float x{}; float y{}; float z{}; } and struct Vector3 { float x; DWORD _paddingx; float y; DWORD _paddingy; float z; DWORD _paddingz; } this one didnt work but i wasnt expecting it to [/QUOTE]
Verification
Post reply
Forums
Gaming
Grand Theft Auto 5
Grand Theft Auto 5 PC
Looking for help with a problem im having
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top