Go here for more information.
(SHARED)
Entity:GetPrice() -> Returns the price the entity on the store.
Player:GetFaction() -> Returns the name of the player's faction and a table containing all the relevant information about it (Passwords are only accessible from the SERVER).
Player:CanRaid(Player victim)
Player:IsPartakingRaid() -> Returns 1 if the player is raiding and 2 is he's being raided.
Player:IsRaiding(Player player)
Player:IsRaidable()
BaseWars.GetRaid() -> Returns global raid data, you shouldn't need to use this.
BaseWars.FindPlayer(String name) -> Attempts to find a player by his name.
BaseWars.FormatMoney()
string.MaxLen(String string, Integer length) -> No need to explain this one.
Player:CanAfford(Integer amount)
Player:GetMoney()
Player:ReachesLevel(Integer level)
Player:GetLimitXP() -> How much XP the level the player is currently in requires.
Player:GetRequiredXP()
Player:SetLevel(Integer level)
Player:IsAlly(Player player)
BaseWars.GetAllFactions()
Player:InsertInFaction(String name)
Entity:IsBuyable(String name) -> Returns the whether the entity is the store or not.
BaseWars.GetChatCommands() -> Returns all chat commands.
(SERVER)
Player:AddMoney(Integer amount)
Player:RemoveFromFaction()
Player:SpawnInFront(String class)
Player:SetupVars()
Player:SaveData()
Player:AddXP(Integer amount)
BaseWars.SaveDatabase(Player player, String data) -> Don't use it.
BaseWars.Notify(Player target, Integer type, Number time, String message) -> Standard notification.
BaseWars.AddNotification(Player target, Integer type, String message) -> Notification board.
BaseWars.StopRaid()
BaseWars.StartRaid(Player victim, Player attacker)
BaseWars.AddChatCommand(String command, String description, callback)
BaseWars.AddSync(String identifier, callback) -> Acts like a hook, calling the specified function everytime a player loads/reloads. (MIGHT REMOVE OR CHANGE BEHAVIOR)
BaseWars.EndSync(String identifier) -> Stops the above from happening. (MIGHT REMOVE)
GM:PlayerLoaded(Player player) -> Hook for when the player's game loads.
(CLIENT)
BaseWars.Notify(Integer type, Number time, String message) -> Standard notification, notifies the client It's being called on.
BaseWars.AddNotification(Integer type, String message) -> Notification board, notifies the client It's being called on.
draw.Circle(Number x, Number y, Number Radius, String texture, Color color)