Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,254 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. 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
Posted (edited)

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

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