🧸AntiAims
Condition / Update
MTools.AntiAims.Condition.Update();
Name
Type
Description
-
-
-
Allows you to get user status. Example usage:
-- Needs events.
MTools.AntiAims.Condition:Update();
-- Updates the user status.
Condition / Get
MTools.AntiAims.Condition.Get(conditions);
Name
Type
Description
conditions
table
Optional. Show only the right ones.
Allows you to get user status. Example usage:
print(MTools.AntiAims.Condition:Get());
-- Returns the user's status. Without the passed argument it can return: S, W, SW, C, A, A+C, NE
print(MTools.AntiAims.Condition:Get({"S", "W", "C", "A", "AC"}));
-- Returns the user's status. Without the passed argument it can return: G, S, W, C, A, AC
-- If an argument is passed, a new 'G' - 'Global' is automatically added.
-- The letter 'G' will only be in case of a status that is not passed.
local Convert = {
["G"] = "Global",
["S"] = "Stand",
["W"] = "Walk",
["SW"] = "Slow Walk",
["C"] = "Crouch",
["A"] = "Air",
["AC"] = "Air Crouch",
["NE"] = "No Exploits",
};
print(Convert[MTools.AntiAims.Condition:Get()]);
-- Example of using the conversion table.
Condition / GetDev
MTools.AntiAims.Condition.GetDev(params);
Name
Type
Description
params
string
What parameter do you want to get.
Allows you to get information about different statuses. Example usage:
-- Needs events.
MTools.AntiAims.Condition:Update();
local Dev = MTools.AntiAims.Condition:GetDev();
local Air = MTools.AntiAims.Condition:GetDev("Air");
print("Velocity: ", Dev["Velocity"], " ", "In Air: ", Air);
-- [neverlose] Velocity: 0 In Air: false
-- Returns the value of Velocity and Air.
Last updated