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. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    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  
Shira-Brixx

How can I draw Marker? (please only in c++)

Recommended Posts

Shira-Brixx

How can I draw a Marker?

static void DRAW_MARKER(int type, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ, int red, int green, int blue, int alpha, BOOL bobUpAndDown, BOOL faceCamera, int p19, BOOL rotate, char* textureDict, char* textureName, BOOL drawOnEnts) { invoke<Void>(0x28477EC23D892089, type, posX, posY, posZ, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, red, green, blue, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName, drawOnEnts); } // 0x28477EC23D892089 0x48D84A02

0x28477ec23d892089, 0xbdd6765e5846a7de, // 1.0.1365.1 (1.43)

// loop >    bool drawMarkerToggle = false;    void drawMarker() {        if (drawMarkerToggle)        {            GRAPHICS::DRAW_MARKER(markerType, markerPos.x, markerPos.y, markerPos.z, markerDir.x, markerDir.y, markerDir.z, markerRot.x, markerRot.y, markerRot.z, markerScale.x, markerScale.y, markerScale.z, markerRED, markerGREEN, markerBLUE, markerALPHA, 0, 1, 1, 0, 0, 0, 0);        }    }

Vector3 markerPos is set to my coords.
the other Vector3´s have I try to change with alot different Values...
but the marker dont will show up and my game laggs if I loop these!
I hope anyone know to help me!?
(and please only in c++)

Share this post


Link to post
Share on other sites
Shira-Brixx

...mhmm ZERO replies!!! Is it not possible or nobody know that!?

Share this post


Link to post
Share on other sites
ItsiAdam

are you actually using shv or your something you made yourself?

Share this post


Link to post
Share on other sites
Shira-Brixx

are you actually using shv or your something you made yourself?

...something self. I tried with "CREATE_CHECKPOINT(int type, float posX1, float posY1, float posZ1, float posX2, float posY2, float posZ2, float radius, int red, int green, int blue, int alpha, int reserved);",

that works fine, I can see a markervoid, but here is the problem that I cannot change the coordinates after I draw it! Ok, maybe I can do it, if I create->check->delete(loop), but that isnt what I want!

Edited by Shira-Brixx

Share this post


Link to post
Share on other sites
Skorpro

This works very well :)

 

C++

// GLOBALbool bMarker = 1;bool SetMarker(Entity entity, float x, float y, float z){	if (DOES_ENTITY_EXIST(entity))	{		DRAW_MARKER(2, x, y, z + 2, 0, 0, 0, 0, 180, 0, 2, 2, 2, 255, 128, 0, 50, 0, 1, 1, 0, 0, 0, 0);		return 1;	}	return 0;}void main(){	while (true)	{		// LOOP		if (bMarker)		{			if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 1))			{				Vehicle car = GET_VEHICLE_PED_IS_USING(PLAYER_PED_ID());				Vector3 v3 = GET_ENTITY_COORDS(car, 1);				SetMarker(car, v3.x, v3.y, v3.z);			}		}		WAIT(0);	}}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.