⚙️Configuration
Below is a table summarizing each major setting. Further down, you can see an excerpt from the config file for reference.
RS.Framework
Determines the framework: auto, esx, or qb.
"auto"
RS.Item
The item required to start the game.
"spinbottle"
RS.Language
The default language for cooldown, winner, and error messages.
"en"
RS.BottleModel
The in-game prop used for the bottle.
"prop_wine_bot_01"
RS.MarkerColor
RGBA color table for any used marker.
{r=0,g=169,b=255}
RS.canMoveWhileSpinn
Whether players can move around while the bottle is spinning.
true
RS.ShowWinnerMarker
If true, displays a marker above the winner’s head.
true
RS.ShowWinnerName
If true, prints or displays the name of the winner.
true
RS.OtherPlayersCanSpin
Allows multiple players to spin if set to true.
true
RS.UseCustomNotify
If true, the script calls RS.CustomNotify(type, message) for notifications.
false
RS = {}
-- Framework Settings
RS.Framework = 'auto'
RS.Item = "spinbottle"
RS.Language = 'en'
-- Bottle & Marker
RS.BottleModel = 'prop_wine_bot_01'
RS.MarkerColor = { r = 0, g = 169, b = 255 }
RS.MarkerType = 0
-- Gameplay
RS.canMoveWhileSpinning = true
RS.ShowWinnerMarker = true
RS.ShowWinnerName = true
RS.OtherPlayersCanSpin = true
-- Notification
RS.UseCustomNotify = false
RS.CustomNotify = function(type, message)
-- Custom logic or fallback to GTA notifications
end
-- Language Messages
RS.CooldownMessages = {
en = "The bottle is already spinning, please wait until it stops!",
-- ...
}
RS.WinnerMessages = {
en = "%s is the chosen one!",
-- ...
}
RS.ErrorMessages = {
en = "Not your bottle",
-- ...
}
-- Framework Detection
function getFramework() ... end
-- ...
Last updated