Skip to content

nut.faction

Brian edited this page Jun 11, 2015 · 2 revisions

This library helps you to handle/register new factions on your schema.

Tutorial

Customizing Your Schema: Adding Factions

Properties

  • nut.faction.teams
  • Stores the list of the factions. This table's key is numeric and increment.
  • nut.faction.indices
  • Stores the list of the factions. This table's key value is not numeric. You can't use ipairs on this table.

Methods

  • nut.faction.loadFromDir(directory)
  • An internal function to load all factions.
  • nut.faction.hasWhitelist(faction)
  • A client-side function to determine if the local player has access to a certain faction.
Clone this wiki locally