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.

Language File - Strings?

Featured Replies

First time I've ever played with code that isn't Java so if the answer is staring me in the face please kindly pat me on the back, point to it and send me on my way, I'll take care of being ashamed myself lol.

 

Ok so callouts, attempting to make a custom version of a pursuit so really not being too creative with the API but hey gotta start somewhere right?

What I'm looking at is these 2 sections of the code

The first

this.CalloutMessage = string.Format(Functions.GetStringFromLanguageFile("CALLOUT_ROBBERY_GTA_MESSAGE"), Functions.GetAreaStringFromPosition(this.spawnPosition));

And the second

// Show message to the player
                Functions.PrintText(Functions.GetStringFromLanguageFile("CALLOUT_ROBBERY_CATCH_UP"), 25000);

EDIT: having to re-add what I typed below the second code segment because when I clicked submit post it deleted it :S

 

My question was, is there a list of possible parameters for this language file that I can replace the "CALLOUT_ROBBERY_GTA_MESSAGE" with, and if so...where?

 

OR can this particular string segment be replaced entirely with just a string.

 

So instead of Functions.getString.....("STRING"),

 

I could just put ("Custom string here", )

 

 

I'm also using the all text mode in LCPDFR myself, so how does that affect it?

Cheers :)

 

 

 

EDIT 2: Yes, you can just replace it with random text, so disregard that part of the question 

Edited by LukeD

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

You probably don't want to use the built-in ones, as they're specific to the built-in callouts - they aren't general in any way. Just do something like

string.Format("We have reports of a crime in {0}.", Functions.GetAreaStringFromPosition(this.spawnPosition));
The built-in strings are done the way they are to support translation into other languages - by putting them in a resources file, we can just change that file to change all user-visible text. You don't need to worry about it for your own mods.
  • Author

You probably don't want to use the built-in ones, as they're specific to the built-in callouts - they aren't general in any way. Just do something like

string.Format("We have reports of a crime in {0}.", Functions.GetAreaStringFromPosition(this.spawnPosition));
The built-in strings are done the way they are to support translation into other languages - by putting them in a resources file, we can just change that file to change all user-visible text. You don't need to worry about it for your own mods.

 

Ah ok, thanks for the speedy reply :)

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

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

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.