haws1290 Posted May 8, 2015 Share Posted May 8, 2015 Does anyone know how I would be able to create a marker circle(orange or changeable if possible), I looked on the native db and found create: CREATE_OBJECT(Hash ObjectHash, float XCoord, float YCoord, float ZCoord, int p4, BOOL p5, BOOL dynamic) // 0x2F7AA05C Would this be it? Link to comment Share on other sites More sharing options...
MrRobinson Posted May 9, 2015 Share Posted May 9, 2015 (edited) No mate, this is it; void DRAW_MARKER(int type, Any x, Any y, Any z, Any dir_x, Any dir_y, Any dir_z, Any rot_x, Any rot_y, Any rot_z, Any scale_x, Any scale_y, Any scale_z, Any r, Any g, Any b, int a, BOOL bob_up_and_down, BOOL face_camera, int p19, BOOL rotate, Any p21, Any p22, Any draw_on_ents) // 0x48D84A02 Long line of code I know, here is a example to make a arrow; GRAPHICS::DRAW_MARKER(2, (pos x), (pos y), (pos z), (direct x 0.0f), (direct y 0.0f), (direct z 0.0f), (rotate x 180.0f), (rotate y 0.0f), (rotate z 0.0f), (scale x 0.75f), (scale y 0.75f), (scale z 0.75f), (leave default/change if you know what they mean) 204, 204, (Interior, for example on the street = 0) 0, (Bobs up and down slowly) 100, (Doesn't follow the player) false, (leave default/change if you know what they mean) true, (leave default/change if you know what they mean) 2, false, false, false, false); This is the marker it creates; Now obviously you can change the marker (to your circle) just change the '2' at the start of the code to the circle marker id, Also to find coordinates to place your marker go HERE Also you will need to create code to see if the player is in the marker and then it runs a command or whatever you want it to do.... AND DON'T FORGET TO TAKE OUT WHAT I HAVE PUT IN BRACKETS!!! Hope this helps! Edited May 9, 2015 by MrRobinson gtaVmod, R3QQ and haws1290 3 Link to comment Share on other sites More sharing options...
NexusAU Posted May 9, 2015 Share Posted May 9, 2015 No mate, this is it; void DRAW_MARKER(int type, Any x, Any y, Any z, Any dir_x, Any dir_y, Any dir_z, Any rot_x, Any rot_y, Any rot_z, Any scale_x, Any scale_y, Any scale_z, Any r, Any g, Any b, int a, BOOL bob_up_and_down, BOOL face_camera, int p19, BOOL rotate, Any p21, Any p22, Any draw_on_ents) // 0x48D84A02 Hope this helps! Wow, thanks Link to comment Share on other sites More sharing options...
MrRobinson Posted May 9, 2015 Share Posted May 9, 2015 No mate, this is it; void DRAW_MARKER(int type, Any x, Any y, Any z, Any dir_x, Any dir_y, Any dir_z, Any rot_x, Any rot_y, Any rot_z, Any scale_x, Any scale_y, Any scale_z, Any r, Any g, Any b, int a, BOOL bob_up_and_down, BOOL face_camera, int p19, BOOL rotate, Any p21, Any p22, Any draw_on_ents) // 0x48D84A02 Hope this helps! Wow, thanks No problem Link to comment Share on other sites More sharing options...
haws1290 Posted May 10, 2015 Author Share Posted May 10, 2015 Thank you ! Link to comment Share on other sites More sharing options...
jordRiot Posted May 12, 2015 Share Posted May 12, 2015 Mr Robinson, Why is this failing? int x = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).x;int y = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).y;int z = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).z;int psX = x + 10;int psY = y + 10;int psZ = z;GRAPHICS::DRAW_MARKER(2, psX, psY, psZ, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 1, 100, false, true, 2, false, false, false, false); Thanks!! Link to comment Share on other sites More sharing options...
MrRobinson Posted May 12, 2015 Share Posted May 12, 2015 Mr Robinson, Why is this failing? int x = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).x;int y = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).y;int z = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_ID(), true).z;int psX = x + 10;int psY = y + 10;int psZ = z;GRAPHICS::DRAW_MARKER(2, psX, psY, psZ, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 1, 100, false, true, 2, false, false, false, false); Thanks!! Dude whats this for? int psX = x + 10;int psY = y + 10;int psZ = z; Thats not needed, just set this; GRAPHICS::DRAW_MARKER(2, psX, psY, psZ, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 1, 100, false, true, 2, false, false, false, false); to; GRAPHICS::DRAW_MARKER(2, x, y, z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 1, 100, false, true, 2, false, false, false, false); OR Change that completely to; playerPosition = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPos, 10.0, 10.0, 0.0)GRAPHICS::DRAW_MARKER(2, playerPosition.x, playerPosition.y, playerPosition.z, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 1, 100, false, true, 2, false, false, false, false); Much more condensed Link to comment Share on other sites More sharing options...
jordRiot Posted May 13, 2015 Share Posted May 13, 2015 (edited) Thank you! Edited May 13, 2015 by jordRiot Link to comment Share on other sites More sharing options...
Recommended Posts