😡
RAINMAD Documentation
WebsiteStoreDiscordYouTube
  • Welcome to RAINMAD Scripts
  • INFORMATION
    • FAQ
    • Support and Assistance
    • Discord Roles
    • How to Update Your Asset
  • CFX Auth system
    • FiveM Asset Escrow System
  • Development Guide
    • Common Issues
    • How to Add Webhooks
    • Target Options Configuration
    • How to Translate Your Script
    • How to Integrate Your Custom Notification Script
    • How to Change the Black Money Name
    • How to Add an Item
    • How to Change the Dispatch
    • Framework Selection and Configuration
    • Finding Item Images
  • RESOURCES
    • Cargo Ship Heist
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Configuration
      • Exports
    • Below the Vault Heist
      • Installation
    • NPC Mechanic
      • Installation
      • Configuration Guide
    • Cash Exchange Heist
      • Installation
      • Dependencies
    • Drugs V: Grow, Cook & Space!
      • Installation
      • Configuration Guide
    • Drugs V: Laboratories
      • Installation
      • Configuration Guide
    • Drugs V: Goods Deal
      • Installation
      • Configuration Guide
    • Drugs V: Business Labs
      • Installation
      • Configuration Guide
    • Drugs V: Effects
      • Installation
      • Configuration Guide
      • Exports
    • Drugs V: Money Laundering
      • Installation
      • Configuration Guide
    • Bank Truck Robbery - 4 in 1!
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • House Robbery with Welding Minigame
      • Installation
      • Dependencies
      • Inventory Integration
      • Translate Strings
      • Discord Log
      • Creating a House for Robbery
      • Events & Exports
      • Disable Mission NPC
    • Lootbag
      • Installation
    • Bounty Board
      • Installation
    • Chopshop with Welding Minigame
      • Installation
      • Dependencies
      • Translate Strings
      • Discord Log
      • Events & Exports
      • Disable Mission NPC
    • Scenes: Draw everywhere
      • Installation
      • Add Text Font
      • Events & Exports
    • Vault Heist
      • Installation
      • Vehicle Mods
      • Dependencies
    • Barge Heist
      • Installation
      • Dependencies
    • Towtruck + Missions
      • Installation
    • Zombies & Dungeon
      • Installation
      • Rarity System
    • Gangs - Territory, Wars & Tribute Zones!
      • Installation
      • Add Gang & Tribute Zone
      • Events & Exports
      • Gang System for ESX
    • Camper V: Drug Caravans
      • Installation
      • Dependencies
    • Realistic Airdrop
      • Installation
    • ATM Robbery - 4 in 1!
      • Installation
    • Bobcat Security Heist
      • Installation
      • Dependencies
    • Minigame Bundle
      • Installation
      • Minigame Exports
      • Translate Strings
    • Weapon V: Realism
      • Installation
    • Boombox with Watch Party
      • Installation
      • Youtube API Key
      • Exports
    • Drop and Dead Info.
      • Installation
    • Throw Everything
      • Installation
      • Useable Items
      • Exports
      • QBCore Compatibility
      • ESX Compatibility
    • Police Riot with Interior
      • Installation
      • Dependencies
    • Dialog with NPC
      • Installation
    • Gun Store Heist
      • Installation
      • Dependencies
    • Emoji V: Share Feelings
      • Installation
    • Illegal Corners: Selling Goods
      • Installation
      • Adding a New Corner
    • Decal V: Graffiti & Vehicle Sticker
      • Installation
      • Custom Decal
      • Events & Exports
    • Hacker V: Become Hacker
      • Installation
      • Custom Hack
      • Functions & Events
    • Weed Shop Heist
      • Installation
      • Dependencies
    • Jailbreak
      • Installation
      • Dependencies
    • Vangelico Heist Final
      • Installation
      • Dependencies
    • Pets
      • Installation
      • QBCore Compatible
    • Artifact Heist
      • Installation
    • Betta Heist
      • Installation
    • Oil Rig Heist
      • Installation
      • Dependencies
    • Fleeca Heist Final
      • Installation
      • Dependencies
    • Deluxe Car Heist
      • Installation
    • Yacht Heist
      • Installation
    • Paleto Heist
      • Installation
    • Union Heist
      • Installation
    • Shop Robbery
      • Installation
    • Drug Boat Heist
      • Installation
    • Underground Heist
      • Installation
      • Dependencies
    • Van Heist
      • Installation
      • Dependencies
    • Pacific Heist
      • Installation
      • Dependencies
    • Train Heist
      • Installation
    • Humane Labs Heist
      • Installation
    • Vangelico Heist
      • Installation
    • Fleeca Heist
      • Installation
    • Casino Heist
      • Installation
      • Dependencies
      • Compatible For Rcore
    • Art Heist
      • Installation
      • Dependencies
    • Kidnapping
      • Installation
    • Graffiti War
      • Installation
Powered by GitBook
On this page
  • Step 1: Locate the config.lua File
  • Step 2: Find the Strings Object
  • Step 3: Translate the Strings
  • Step 4: Apply the Translation
  • Troubleshooting
  • Additional Tips
  1. Development Guide

How to Translate Your Script

Translating your script into different languages is made easy by modifying the config.lua file. Follow the steps below to customize the language settings using the Strings object within the config.lua.

Step 1: Locate the config.lua File

  • Access Your Server Files:

    • Connect to your server via FTP or use your file manager.

    • Navigate to the directory where your script is located.

  • Open config.lua:

    • Find and open the config.lua file using a text editor (e.g., Notepad++, VS Code).

Step 2: Find the Strings Object

Within the config.lua file, locate the Strings object. This object contains all the text strings used in the script that you can translate.

Example:

Strings = {
    ["welcomeMessage"] = "Welcome to our server!",
    ["errorMessage"] = "An error has occurred. Please try again.",
    -- Add more strings here
}

Step 3: Translate the Strings

  • Identify the Text Strings:

    • Review the Strings object to see which text strings are used in the script.

  • Translate Each String:

    • Replace the English text (or the default language) with your desired translation. Ensure that the syntax remains correct.

Example of Translation:

Strings = {
    welcomeMessage = "Bienvenido a nuestro servidor!", -- Spanish translation
    errorMessage = "Se ha producido un error. Por favor, inténtelo de nuevo.", -- Spanish translation
    -- Add more translations here
}

Save Your Changes:

  • After translating the strings, save the config.lua file.

Step 4: Apply the Translation

  • Restart Your Server:

    • To apply the new translations, restart your server.

  • Test the Script:

    • Verify that the translated text appears correctly in your server's interface and messages.

Troubleshooting

  • Text Not Displaying: Ensure that the config.lua file is correctly edited and saved. Double-check for any syntax errors.

  • Incorrect Translations: Review the translations for accuracy and context. Make sure the translated strings fit the intended use.

Additional Tips

  • Backup Before Editing: Always back up your original config.lua file before making changes.

  • Use Online Translation Tools: If you're not fluent in the target language, consider using online translation tools or services for assistance.

PreviousTarget Options ConfigurationNextHow to Integrate Your Custom Notification Script

Last updated 8 months ago