Retro Fantasy Football
Command
Section titled โCommandโThe default command comes from cl_config.lua:
| Setting | Default | Description |
|---|---|---|
Config.Command | rstablet | Toggles the tablet. Set it to nil to disable the command. |
Client Exports
Section titled โClient Exportsโ1. Toggle the tablet
Section titled โ1. Toggle the tabletโexports.rs_fantasy_football:toggleTablet()Example open it via an item or a radial menu:
RegisterNetEvent('my-script:openFootball', function() exports.rs_fantasy_football:toggleTablet()end)2. Is the tablet open?
Section titled โ2. Is the tablet open?โlocal isOpenNow = exports.rs_fantasy_football:getState()-- true: open, false: closedExample avoid conflicts with another UI:
if exports.rs_fantasy_football:getState() then return -- already open, do not open a second tabletend3. Temporarily block opening
Section titled โ3. Temporarily block openingโexports.rs_fantasy_football:setOpenBlock(true) -- blockexports.rs_fantasy_football:setOpenBlock(false) -- allow againExample lock it while the player is in a match, handcuffed, or inside another menu:
-- Another menu was openedexports.rs_fantasy_football:setOpenBlock(true)
-- Menu was closedexports.rs_fantasy_football:setOpenBlock(false)- While the tablet is open, closing it with
ESC. - Language, music, and sound settings belong to the player (Settings menu, 9 languages). They cannot be forced via config.