Config and Permissions

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 ACE Permissions 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",
        },
    },
}

Last updated