How do I create an allegiance?

How to make your own allegiance.
1) Navigate to the following directory: lua/wos/prs/squad/allegiances/
2) Use the existing file, or create your own .lua file in that folder.
3) Allegiances can be created using the provided format. You can insert as many as you want in one file, or create multiple files for organization.
 
wOS.RenegadeSquad.Alleg:RegisterAllegiance({
    Name = "Clone Trooper", -- The name of your allegiance.
    Description = "For the chancellor", -- This will be the description that is displayed in the View Allegiances section of the Squad Menu.
    UserGroups = false, -- Specify which usergroups are allowed to pledge their allegiance to this allegiance.
    AdminGroups = { "superadmin", "founder" }, -- Specify which usergroups can manage members in squads that are pledged to this allegiance.
    TeamColor = Color( 133, 133, 133 ), -- Set a color for the allegiance.
    Logo = "wos/prs/renicon.png", -- The logo that will be displayed across the squad menu and in the View Allegiances section.
    RequiredCertif = { -- [Optional] Specify which certifications are required to pledge allegiance.
        [ "-Trained" ] = true,
    },
    DefaultRole = "Clone Trooper", -- The default role members will be switched to when joining a squad pledged to this allegiance. (This role must be a valid role)
    OnSpawn = function( ply )
 
    end,
})
  • allegiance, RSS
  • 0 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

How do I create a role?

How to make your own role. Go to your roles folder:...

How do I make my own unlock?

How to make your own appearance unlock. Navigate to...

Installation and Configuration

Installing the ContentBefore you begin installing the addon you need to install the required...

How do I assign other people and myself certifications?

How to assign other people certifications: Hold c, and right-click a player. Click view...

How To Disable The WiltOS Chat Advertisement

How to disable the wOS chat advert Navigate to lua/wos/prs/config/general/sv_config.lua Find...