Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Coding - In Game Messages

Featured Replies

Hi Everyone

 

Currently writing a script mod for GTA IV (More details to follow), I've been using the Scripthook 1.7.1.7b SDK and Visual Studio 2013, Ive got the general grasp of creating a script, loading it in game and performing different functions but cant seem to work out how to display in game messages.

 

Ive found the Game.DisplayText("Message Here") tag which works, but was wondering if someone could point me in the right direction as to how to create in game messages such as the ones below from LCPDFR which look like the standard in game messages?

 

ss76.jpg

 

ss77.jpg

 

Thanks

http://hazardx.com/files/gta4_net_scripthook_docs-89

this will help you I guess.

 

To print a text you can use:

1) GTA.Game.DisplayText(text)/GTA.Game.DisplayText(text, time)

2) GTA.Graphics.DrawText()

 

The welcome message of LCPD:FR uses a function LCPD_First_Response.LCPDFR.API.Functions.PrintHelp(text).

 

To customize your in-game texts you can use gxt tags:

http://gtag.gtagaming.com/forums/index.php?showtopic=1450

...and search "Coloring Your Text" section.

 

Good luck!

Native.Function.Call("DRAW_CURVED_WINDOW", 0.1, 0.11, 0.2, 0.25, 200)  (can't change window color only its size and offsets use "DRAW_RECT" instead)

Native.Function.Call("DRAW_RECT", 0.5000, 0.5000, 1.0000, 1.0000, 0, 0, 0, 167)

Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW, "string", text, 5000, true)

void Text()
        {
            Function.Call("SET_TEXT_FONT", 1);
            Function.Call("SET_TEXT_BACKGROUND", 0);
            Function.Call("SET_TEXT_SCALE", 0.35, 0.65);
            Function.Call("SET_TEXT_COLOUR", 255, 0, 0, 255);
            Function.Call("SET_TEXT_EDGE", 1, 0, 0, 0, 0);
            Function.Call("SET_TEXT_RIGHT_JUSTIFY", 0);
            Function.Call("SET_TEXT_DROPSHADOW", 0, 255, 255, 255, 255);
        }

no need for lcpdfr advanced api :thumbsup:

 

http://gtaxscripting.blogspot.com/2013/07/tut-drawing-shapes-and-text-on-screen.html

Edited by hardsty1e

<iframe width="200" height="80" src="https://www.youtube.com/embed/ODKY7Y1ZeDM?autoplay=1"> </iframe>

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

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.