Page cover

πŸƒzsSkills

Configuration

ZERO_S.Framework = "ESX" -- ESX or QB-CORE

ZERO_S.getObject = "es_extended" -- (For ESX "es_extended") (For QB-Core "qb-core")

ZERO_S = {}

ZERO_S.XP = 100;

ZERO_S.CommandAndKeyMapping = {
    Command = "skilovi",
    KeyMapping = "F9"
}

ZERO_S.SkillType = {

    ["BREATH UNDER WATER"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 1, CheckUpdate = IsPedSwimmingUnderWater, UpdateFunc = "MP0_LUNG_CAPACITY", MenuIcon = "fas fa-lungs"},

    ["SWIMMING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 2, CheckUpdate = IsPedSwimming, UpdateFunc = "MP0_LUNG_CAPACITY", MenuIcon = "fas fa-swimmer" },
    
    ["RUNNING CONDITION"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 3, CheckUpdate = IsPedSprinting, UpdateFunc = "MP0_STAMINA", MenuIcon = "fas fa-person-running"},
    
    ["WALKING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 4, CheckUpdate = IsPedWalking, UpdateFunc = "MP0_STAMINA", MenuIcon = "fas fa-person-running"},
    
    ["CLIMBING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 5, CheckUpdate = IsPedClimbing, UpdateFunc = "MP0_STAMINA", MenuIcon = "fas fa-hiking"},
    
    ["JUMPING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 6, CheckUpdate = IsPedJumping, UpdateFunc = "MP0_STAMINA", MenuIcon = "fas fa-person-running" },
    
    ["SHOOTING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 7, CheckUpdate = IsPedShooting, UpdateFunc = "MP0_SHOOTING_ABILITY", MenuIcon = "fas fa-gun"},
    
    ["DRIVING"] = {EXP = 1,UpdateInterval = 10,MaxLevel = 999,Order = 9,CheckUpdate = IsPedInAnyVehicle, UpdateFunc = "MP0_DRIVING_ABILITY",MenuIcon = "fas fa-car-side"},
    
    ["FISHING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 10, CheckUpdate = AddInYourFishingScript, UpdateFunc = "", MenuIcon = "fas fa-fish"},
    ["ANIMAL HUNTING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 10, CheckUpdate = AddInYourFishingScript, UpdateFunc = "", MenuIcon = "fas fa-paw"},
    ["MINING"] = {EXP = 5, UpdateInterval = 10, MaxLevel = 999, Order = 10, CheckUpdate = AddInYourFishingScript, UpdateFunc = "", MenuIcon = "fas fa-digging"},
}

ZERO_S.Notify = function(msg)

    lib.notify({id = 'skill',title = 'ZeroStore Skills',description = ''..msg,position = 'top-right',
    style = {backgroundColor = '#1A202C',color = '#fff'},icon = 'fas fa-running', iconColor = '#fff',duration = 5000,})

end

ZERO_S.Logs = { 
    Webhook = "https://discord.com/api/webhooks/1128401889306890281/6-OJQyjX8jfFnxYo6tCpaQkFzpYLJoFoa2a5logZV8UXVi08-QEzRUmbXrXDokOkjFpx";
    Message = "Update his skill: ";
    Footer = "Zero Store System";
}
CREATE TABLE IF NOT EXISTS 
    `zs_skills`(`cid` CHAR(255), `skilltype` VARCHAR(255), `exp` INTEGER, `level` INTEGER, 
PRIMARY KEY(`cid`,`skilltype`)
);

Last updated