Parik Posted January 17, 2015 Share Posted January 17, 2015 How can I display a texture in GTA IV according to the location. Link to comment Share on other sites More sharing options...
Rugz007 Posted January 17, 2015 Share Posted January 17, 2015 what do you mean exactly ? Link to comment Share on other sites More sharing options...
Parik Posted January 17, 2015 Author Share Posted January 17, 2015 what do you mean exactly ? I mean that I want to display an image if the player is standing at coordinations 503 , 213 , 100 Link to comment Share on other sites More sharing options...
Rugz007 Posted January 17, 2015 Share Posted January 17, 2015 which language (can give you c#) ? Link to comment Share on other sites More sharing options...
Parik Posted January 17, 2015 Author Share Posted January 17, 2015 (edited) which language (can give you c#) ? Any Language. I know c++ , c# , vb Edited January 18, 2015 by Parikshit Singh Link to comment Share on other sites More sharing options...
Parik Posted January 18, 2015 Author Share Posted January 18, 2015 which language (can give you c#) ? OK , Give C# Link to comment Share on other sites More sharing options...
Jitnaught Posted January 19, 2015 Share Posted January 19, 2015 To draw an external texture with C#... Import your picture into your C# project as a resource. Change the "Build Action" property of the picture resource to "Embedded Resource". Create a Texture variable in your code and set it to Resources.GetTexture("your_pic_name.png"); Create a PerFrameDrawing event* Put e.Graphics.DrawSprite(yourTextureVariable, floatCenterX, floatCenterY, floatWidth, floatHeight, floatRotation); in your PerFrameDrawing event function *To create the PerFrameDrawing event, add PerFrameDrawing += myPerFrameDrawingEvent; to the public yourClassName() function, then create the "myPerFrameDrawingEvent" with private void myPerFrameDrawingEvent(System.Object sender, GTA.GraphicsEventArgs e) { }. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now