Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    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. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. 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. Red Dead Redemption 2

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

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

    2. Support

    3. Suggestions

[Q]Creating Marker Circle


haws1290
 Share

Recommended Posts

MrRobinson

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;

 

QsRpk5F.png

 

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 by MrRobinson
  • Like 3
Link to comment
Share on other sites

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

MrRobinson

 

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 :D

Link to comment
Share on other sites

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

MrRobinson

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 :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

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