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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
haws1290

[Q]Creating Marker Circle

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

Share this post


Link to post
Share on other sites
NexusAU

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
haws1290

Thank you !

Share this post


Link to post
Share on other sites
jordRiot

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!!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
jordRiot

Thank you!

Edited by jordRiot

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
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.