Configuration
Every option in STG Card Game V2 config.lua and settings.lua, from framework and item to notifications, AI names and Discord avatars.
General settings live in stg-cardgame/config.lua, the Discord bot token lives in stg-cardgame/settings.lua. Both files stay editable in the escrow version. Restart the resource after a change.
Language
Config = {
language = "en",
}Available: en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi, no. To change a text, edit the matching file in stg-cardgame/locales/. Each file has the in-game prompts at the top and the lobby and game screen texts under web.
Framework and item
Config = {
Framework = "auto",
item = "cardgame",
unoTable = "qua_uno",
}Prop
Type
Placing a table
When a player uses the item, the table follows their camera. They rotate it with the arrow keys, place it with E or cancel with Backspace. Placing the table opens the lobby setup, where the owner picks the number of players and the table theme. A player who is already at a table cannot place another one.
Players near a table press E to open the lobby. The owner can press X to remove the table together with its game. The table is removed automatically when the owner leaves the server.
Notifications
Config = {
beep = true,
HelpNotify = function(message)
lib.showTextUI(message, {
position = "right-center",
icon = 'info-circle',
style = {
borderRadius = 1,
whiteSpace = 'pre-line'
}
})
end,
HideHelpNotify = function()
lib.hideTextUI()
end,
Notify = function(msg)
lib.notify({
title = getMessage('notify_title'),
description = msg,
type = "info",
duration = 3000,
})
end,
}Prop
Type
AI names
Config = {
aiNames = {
"Hudson",
"Davis",
"Landen",
-- ...
}
}Names given to AI players added from the lobby with Add AI. Each AI gets a random name from this list, shown as [AI] Hudson, and never the same name as another AI at the same table. A table can hold up to three AI players, so keep at least three names in the list.
Discord avatars
Settings = {
botToken = ""
}Set in stg-cardgame/settings.lua. When botToken holds a Discord bot token, the lobby and game screen show each player's Discord profile picture, read from the Discord identifier of their FiveM account. Leave it empty to show the STG logo for every player instead.
The bot token gives full control of that bot. Use a bot made only for this, and never share settings.lua with anyone.
Still having trouble?
Open a ticket on our Discord. Our team answers around 15 hours a day.