Agents can also search and read this documentation through its MCP server.
Installation
Installation
Requirements
| Resource | Description |
|---|---|
| oxmysql | Required. Used to remember who has already watched the intro. |
General Setup
- Extract the resource into your server's
resourcesfolder. - Make sure the folder name is strictly
hkn_welcomescreen. - Import the
install.sqlfile into your database. - Open your
server.cfg. - Make sure
oxmysqlis started before this script. - Add the following line:
ensure oxmysql
ensure hkn_welcomescreen
Database
The install.sql file creates the table used to remember which players have watched the intro.
CREATE TABLE IF NOT EXISTS `hkn_welcome` (
`identifier` varchar(50) NOT NULL,
PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Usage
The intro starts automatically the first time a player joins the server, as soon as their character is loaded and no other screen is open. Players can move between the scenes with the Next and Back buttons, or leave with Skip Intro.
Once a player finishes or skips the intro, it is saved to the database and never shown to them again.
Note: To show the intro to a player again, delete their row from the
hkn_welcometable. To show it to everyone again, empty the table.
Configuration
Below are all available configuration options for hkn_welcomescreen.
Update Check
Enable or disable the version check on resource start.
Config.UpdateCheck = true
Language
Select the language used by the interface.
Config.Locale = 'en'
Theme Color
Customize the interface theme color.
Config.ThemeColor = "#FF00DD"
Locales
Customize every text displayed in the interface.
Config.Locales = {
['en'] = {
next = "Next",
back = "Back",
skip = "Skip Intro",
finish = "Finish Intro",
press_e = "Press E to watch the intro",
already_watched = "You have already watched this intro!"
}
}
Locations
Scenes shown during the intro, in order.
Config.Locations = {
[1] = {
title = "International Airport",
description = "Where you take your first step into Los Santos. A new face, a new name in the city... The adventure begins right on this asphalt.",
duration = 6,
smoothTransition = true,
cameras = {
{ coords = vector3(-1021.41, -2708.54, 25.97), pitch = -10.0, heading = 149.53 },
{ coords = vector3(-1010.32, -2679.57, 44.74), pitch = -10.0, heading = 147.71 }
}
},
}
See the Config page for a description of every field.
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.