Advertisement
GlorifiedPig

Untitled

Feb 23rd, 2021
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 KB | None | 0 0
  1.  
  2. -- I went searching through the GitHub and this is all the things I would assume you need.
  3.  
  4. -- Skeleton class file:
  5. CLASS.name = "Name"
  6. CLASS.description = "Class description"
  7. CLASS.faction = FACTION_UNKNOWN
  8. CLASS.income = 500
  9. CLASS.isDefault = true
  10. CLASS.weapons = { "weapon_fists" }
  11.  
  12. function CLASS:CanSwitchTo( client )
  13.     return true -- True means the client can switch to this class, false if not.
  14. end
  15.  
  16. function CLASS:OnSet( client )
  17.     -- This function gets called when the "client" switches to this class.
  18. end
  19.  
  20. function CLASS:OnSpawn( client )
  21.     -- This is called upon the player spawning in with this class.
  22. end
  23.  
  24. CLASS_UNIQUE_NAME = CLASS.index
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. -- Skeleton faction file:
  33. FACTION.name = "Faction Name"
  34. FACTION.description = "Faction description"
  35. FACTION.income = 500
  36. FACTION.isDefault = true
  37. FACTION.color = Color( 40, 40, 155 )
  38. FACTION.isGloballyRecognized = false -- True if everyone knows this faction's players names.
  39. FACTION.models = {
  40.     "models/player/zelpa/male_02.mdl",
  41.     "models/player/zelpa/male_01.mdl",
  42. }
  43.  
  44. function FACTION:OnCharacterCreated( client, character )
  45.     -- This is called when a character is created with this faction.
  46. end
  47.  
  48. FACTION_UNIQUE_NAME = FACTION.index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement