Luman Studio
TebexDiscordYouTube
  • Documentation
  • FiveM Scripts
    • Squid Game
      • Doll Game
        • Installation
        • Customization
      • Dalgona Game
        • Installation
        • Customization
        • Manual Mode
      • Crystal Game
        • Installation
        • Customization
      • Mingle Game
        • Installation
        • Customization
      • Lobby MLO
        • Installation
        • Customization
  • Ghostbusters
    • Installation
    • Customization
  • Flatout Game
    • Ski Stunt
      • Installation
      • Customization
    • Cannon Stunt
      • Installation
      • Customization
  • Easter Game
    • Installation
    • Customization
  • RedM Scripts
    • Dragon Rider
      • Installation
      • Config and Permissions
      • More Dragons
      • Events
    • Bear Trap
      • Installation
      • Customization
    • Red Light
      • Installation
      • Customization
Powered by GitBook
On this page
  • Basic configuration
  • Permissions
  • Permissions by Player Identifiers
  1. RedM Scripts
  2. Dragon Rider

Config and Permissions

PreviousInstallationNextMore Dragons

Last updated 1 month ago

Basic configuration

Config.CommandName = 'luman-dragon' -- Command name
Config.CommandAdminOnly = true -- Admin only

Permissions

By default command for dragon spawn is available only to main administrators. To allow other players use the command you can add access for them via server.cfg:

# example #1
add_ace group.dragon-access command.luman-dragon allow
add_principal identifier.license:rjridjs38382 group.dragon-access

# example #2
add_ace group.donator-group command.luman-dragon allow
add_principal identifier.license:rjridjs38382 group.donator-group

More details about how it works in guide.

You also can totally enable the command to all players on the server in config.lua by setting Config.CommandAdminOnly = false.

Permissions by Player Identifiers

You can restrict access per specific dragons. For this add player identifiers into allowedOnlyToPlayersWithIdentifiers. From now only players with these identifiers will have access to the dragon. Example:

Config.Dragons = {
    -- Golden Dragon. Use command `/luman-dragon 1`
    {
        hash = `a_c_lumandragon_01`,
        outfit = 0,
        ...
        cameraDistance = 11.0,
        allowedOnlyToPlayersWithIdentifiers = {
            "fivem:70175",
            "discord:452471793853267973",
            "steam:21000000020000",
            "license:1rerd5d1234b7cc33c2de13fc0fer5e2dbc3f432",
        },
    },
}
ACE Permissions