Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- I went searching through the GitHub and this is all the things I would assume you need.
- -- Skeleton class file:
- CLASS.name = "Name"
- CLASS.description = "Class description"
- CLASS.faction = FACTION_UNKNOWN
- CLASS.income = 500
- CLASS.isDefault = true
- CLASS.weapons = { "weapon_fists" }
- function CLASS:CanSwitchTo( client )
- return true -- True means the client can switch to this class, false if not.
- end
- function CLASS:OnSet( client )
- -- This function gets called when the "client" switches to this class.
- end
- function CLASS:OnSpawn( client )
- -- This is called upon the player spawning in with this class.
- end
- CLASS_UNIQUE_NAME = CLASS.index
- -- Skeleton faction file:
- FACTION.name = "Faction Name"
- FACTION.description = "Faction description"
- FACTION.income = 500
- FACTION.isDefault = true
- FACTION.color = Color( 40, 40, 155 )
- FACTION.isGloballyRecognized = false -- True if everyone knows this faction's players names.
- FACTION.models = {
- "models/player/zelpa/male_02.mdl",
- "models/player/zelpa/male_01.mdl",
- }
- function FACTION:OnCharacterCreated( client, character )
- -- This is called when a character is created with this faction.
- end
- FACTION_UNIQUE_NAME = FACTION.index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement