D7VS Posted May 6, 2016 Share Posted May 6, 2016 (edited) hello everyone, im coding a gta v menu for ps3 and i need help with Vector3 for teleport static void TeleportCustom(int PedHandle, float X, float Y, float Z{ Vector3 HhHhHhH = (X, Y, Z); // i need help with this << uint handle = PedHandle; if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0)) handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0); ENTITY::SET_ENTITY_COORDS(handle, HhHhHhH, 0, 0, 0, 1);} SET_ENTITY_COORDS native: static void SET_ENTITY_COORDS(Entity entity, Vector3 Coords, BOOL XAxes, BOOL YAxes, BOOL ZAxes, BOOL unk) { invoke<Void>(0xDF70B41B, entity, Coords, XAxes, YAxes, ZAxes, unk); } // 0xDF70B41B typedef struct{ float x; float y; float z;} Vector3; Please help.. Edited May 6, 2016 by D7VS Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 6, 2016 Share Posted May 6, 2016 Use this and you should be ok: typedef struct { float x; DWORD _paddingx; float y; DWORD _paddingy; float z; DWORD _paddingz; } Vector3; Cheers, Mockba. Link to comment Share on other sites More sharing options...
Sudo Posted May 7, 2016 Share Posted May 7, 2016 (edited) Vector3 HhHhHhH = { 0, 0UL, 0, 0UL, 0, 0UL }; Edited May 7, 2016 by Sudo Link to comment Share on other sites More sharing options...
Zumorio Posted May 7, 2016 Share Posted May 7, 2016 Vector3 HhHhHhH;HhHhHhH.x = X;HhHhHhH.y = Y;HhHhHhH.z = Z; You can use this method as well. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now