Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

Happy Holidays from the GTANet team!

GTA Forms


Noox
 Share

Recommended Posts

Do they work like normal Windows forms? I couldn't find anything about them in this forum or the documentation, could you please make an example just to see how stuff is done?

I assume the location of the objects changes based on the resolution, just like CSS, right?

Link to comment
Share on other sites

UltraNineNine

Do they work like normal Windows forms? I couldn't find anything about them in this forum or the documentation, could you please make an example just to see how stuff is done?

I assume the location of the objects changes based on the resolution, just like CSS, right?

GTA has many type of forms,one of the type is:
Imports System.Windows.Forms=To set a hotkey for your mod like:If e.key = keys.A then
Imports System.Drawing=To draw a shapes and text on screen (MENU,HUD,MESSAGE)
Imports System.IO=To draw a non game image on screen
But the most basic is this one
Imports GTA and Imports System
This will make visual studio understand that you are coding for GTA 4
Edited by UltraNineNine
  • Like 3
Link to comment
Share on other sites

Maro Hannover

ok how do i draw a game message that is shown in missions and everything. also in simple native trainer when you spawn a car it says car spawned with the same message used ingame and also how do i color a part of it like "Get in the car" i want to make the car work blue. In gta sa we used ~ and +

like Get in the ~b~car~w~. or Get in the +b+car+w+.

and if you don't understand

+b+ means blue

+w+ means white

Link to comment
Share on other sites

UltraNineNine

ok how do i draw a game message that is shown in missions and everything. also in simple native trainer when you spawn a car it says car spawned with the same message used ingame and also how do i color a part of it like "Get in the car" i want to make the car work blue. In gta sa we used ~ and +

like Get in the ~b~car~w~. or Get in the +b+car+w+.

and if you don't understand

+b+ means blue

+w+ means white

For the blue message use this:

abc.Graphics.DrawText("            " + keyaction, 0.43f, 0.07f, System.Drawing.Color.FromArgb(pokaz, System.Drawing.Color.AliceBlue));                    abc.Graphics.DrawText("[destroy all nearly running engines]", 0.36f, 0.09f, System.Drawing.Color.DodgerBlue);

If you want to display the same message used ingame then use this:

msgEx("Whatever Text You Want", 3000)
  • Like 1
Link to comment
Share on other sites

 

ok how do i draw a game message that is shown in missions and everything. also in simple native trainer when you spawn a car it says car spawned with the same message used ingame and also how do i color a part of it like "Get in the car" i want to make the car work blue. In gta sa we used ~ and +

like Get in the ~b~car~w~. or Get in the +b+car+w+.

and if you don't understand

+b+ means blue

+w+ means white

For the blue message use this:

abc.Graphics.DrawText("            " + keyaction, 0.43f, 0.07f, System.Drawing.Color.FromArgb(pokaz, System.Drawing.Color.AliceBlue));                    abc.Graphics.DrawText("[destroy all nearly running engines]", 0.36f, 0.09f, System.Drawing.Color.DodgerBlue);

If you want to display the same message used ingame then use this:

msgEx("Whatever Text You Want", 3000)

 

No no no, he wants to color part of the message I believe. If you'd like to do that, use these codes http://psx-scene.com/forums/f312/customize-strings-colors-blips-other-things-107029/#post1035288

 

And "msgEx" is not a function in ScriptHook .NET. Use this:

private static void Subtitle(string info, int millisecs = 1500)        {            GTA.Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", info, millisecs, 1);        }

Do they work like normal Windows forms? I couldn't find anything about them in this forum or the documentation, could you please make an example just to see how stuff is done?

I assume the location of the objects changes based on the resolution, just like CSS, right?

Are you trying to use GTA.Forms, or what UltraNineNine said?

Link to comment
Share on other sites

 

 

ok how do i draw a game message that is shown in missions and everything. also in simple native trainer when you spawn a car it says car spawned with the same message used ingame and also how do i color a part of it like "Get in the car" i want to make the car work blue. In gta sa we used ~ and +

like Get in the ~b~car~w~. or Get in the +b+car+w+.

and if you don't understand

+b+ means blue

+w+ means white

For the blue message use this:

abc.Graphics.DrawText("            " + keyaction, 0.43f, 0.07f, System.Drawing.Color.FromArgb(pokaz, System.Drawing.Color.AliceBlue));                    abc.Graphics.DrawText("[destroy all nearly running engines]", 0.36f, 0.09f, System.Drawing.Color.DodgerBlue);

If you want to display the same message used ingame then use this:

msgEx("Whatever Text You Want", 3000)

 

No no no, he wants to color part of the message I believe. If you'd like to do that, use these codes http://psx-scene.com/forums/f312/customize-strings-colors-blips-other-things-107029/#post1035288

 

And "msgEx" is not a function in ScriptHook .NET. Use this:

private static void Subtitle(string info, int millisecs = 1500)        {            GTA.Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", info, millisecs, 1);        }

Do they work like normal Windows forms? I couldn't find anything about them in this forum or the documentation, could you please make an example just to see how stuff is done?

I assume the location of the objects changes based on the resolution, just like CSS, right?

Are you trying to use GTA.Forms, or what UltraNineNine said?

 

No I saw some other mods and I think it's too early for GUIs :p

Link to comment
Share on other sites

 

 

 

ok how do i draw a game message that is shown in missions and everything. also in simple native trainer when you spawn a car it says car spawned with the same message used ingame and also how do i color a part of it like "Get in the car" i want to make the car work blue. In gta sa we used ~ and +

like Get in the ~b~car~w~. or Get in the +b+car+w+.

and if you don't understand

+b+ means blue

+w+ means white

For the blue message use this:

abc.Graphics.DrawText("            " + keyaction, 0.43f, 0.07f, System.Drawing.Color.FromArgb(pokaz, System.Drawing.Color.AliceBlue));                    abc.Graphics.DrawText("[destroy all nearly running engines]", 0.36f, 0.09f, System.Drawing.Color.DodgerBlue);

If you want to display the same message used ingame then use this:

msgEx("Whatever Text You Want", 3000)

 

No no no, he wants to color part of the message I believe. If you'd like to do that, use these codes http://psx-scene.com/forums/f312/customize-strings-colors-blips-other-things-107029/#post1035288

 

And "msgEx" is not a function in ScriptHook .NET. Use this:

private static void Subtitle(string info, int millisecs = 1500)        {            GTA.Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", info, millisecs, 1);        }

Do they work like normal Windows forms? I couldn't find anything about them in this forum or the documentation, could you please make an example just to see how stuff is done?

I assume the location of the objects changes based on the resolution, just like CSS, right?

Are you trying to use GTA.Forms, or what UltraNineNine said?

 

No I saw some other mods and I think it's too early for GUIs :p

 

Um... ok?

Link to comment
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
 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.