Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Debug = false -- Set this to true to enable debug mode
- Config.Framework = 'qbx' -- Change to 'qb' or 'qbx' depending on your framework (If not supported, see the instructions in the README.md)
- Config.NotifySystem = 'qbx' -- Can be 'qbx' or 'qb' or 'ox' or 'none' depending on your framework
- Config.Target = 'ox' -- Can be 'ox' or 'qb'
- Config.ClientUpdateInterval = 10 -- Interval between client checks in SECONDS (Mainly Used to see if the player is running, swimming, etc)
- Config.ServerUpdateInterval = 5 -- Interval Between Server Updates in MINUTES to apply the skills
- Config.GymEquipment = {
- -- Want to make the xp Varied? add the following: math.random(10, 20) -- This will give a random number between 10 and 20
- pullUpXPReward = 10, -- The amount of XP the player will get for using this equipment
- weightsXPReward = math.random(10, 15), -- Want to make the xp Varied? add the following: math.random(10, 20) This will give a random number between 10 and 20
- treadmillXPReward = 10,
- method = 'circle', -- Can be 'circle' or 'bar' or can be skillcheck
- -- If Method == skillCheck then this will be used below
- skillDifficulty = {
- speed = { 'easy', 'easy', 'easy', 'medium', 'easy', 'medium', 'easy', 'easy', 'easy' }, -- The difficulty of the skill check, can be 'easy', 'medium', 'hard', can add more if the game is too easy or too hard
- inputs = { 'w', 'a', 's', 'd' } -- The keys the player needs to press to complete the skill check
- },
- locations = {
- beach = {
- pullUps = {
- [1] = {
- location = vector3(-1204.77, -1564.36, 4.61),
- rotation = 30.62,
- size = vector3(1.8, 1.8, 1.8),
- },
- [2] = {
- location = vector3(-1200.04, -1571.16, 4.61),
- rotation = 211.31,
- size = vector3(1.8, 1.8, 1.8),
- },
- },
- weights = {
- [1] = {
- location = vector3(-1197.9748535156, -1564.6409912109, 4.3101298332214),
- rotation = 0,
- size = vector3(1.0, 1.0, 1.0),
- },
- [2] = {
- location = vector3(-1209.7298583984, -1558.5817871094, 4.3168441772461),
- rotation = 0,
- size = vector3(1.0, 1.0, 1.0),
- },
- },
- treadmill = {
- [1] = {
- location = vector3(-1202.9887695312, -1569.9638671875, 3.8079692840576),
- rotation = 30.62,
- size = vector3(1.8, 1.8, 2.5),
- },
- },
- }
- }
- }
- Config.UseRecoil = true -- If you don't want to use the recoil system, set this to false
- Config.Recoils = { -- Some of these can be intense, 0.4 seems to be decent, but you can adjust to your liking (0.0 - 1.0)
- [GetHashKey("WEAPON_PISTOL")] = 0.2,
- [GetHashKey("WEAPON_COMBATPISTOL")] = 0.2,
- [GetHashKey("WEAPON_APPISTOL")] = 0.2,
- [GetHashKey("WEAPON_MICROSMG")] = 0.25,
- [GetHashKey("WEAPON_SMG")] = 0.25,
- [GetHashKey("WEAPON_ASSAULTSMG")] = 0.25,
- [GetHashKey("WEAPON_ASSAULTRIFLE")] = 0.4,
- [GetHashKey("WEAPON_CARBINERIFLE")] = 0.4,
- [GetHashKey("WEAPON_ADVANCEDRIFLE")] = 0.4,
- [GetHashKey("WEAPON_MG")] = 0.5,
- [GetHashKey("WEAPON_COMBATMG")] = 0.5,
- [GetHashKey("WEAPON_PUMPSHOTGUN")] = 0.3,
- [GetHashKey("WEAPON_SAWNOFFSHOTGUN")] = 0.3,
- [GetHashKey("WEAPON_ASSAULTSHOTGUN")] = 0.3,
- [GetHashKey("WEAPON_BULLPUPSHOTGUN")] = 0.3,
- [GetHashKey("WEAPON_SNIPERRIFLE")] = 0.5,
- [GetHashKey("WEAPON_HEAVYSNIPER")] = 0.5,
- [GetHashKey("WEAPON_GRENADELAUNCHER")] = 0.4,
- [GetHashKey("WEAPON_RPG")] = 0.5,
- }
- -- Exports Available to you are:
- -- Client:
- -- exports.o_skills:getXP(skill)
- -- exports.o_skills:addXP(skill, amount)
- -- Server:
- -- exports.o_skills:getServerXP(source, skill)
- -- exports.o_skills:addServerXP(source, skill, amount)
- Config.Skills = {
- --- Below this line are GTA Native skills (These have effects within this script E.g Recoil, Stamina, etc)
- flying = { -- Skill Name (We use this to reference the skill in the code, e.g when using the addxp command)
- label = "Flying", -- The name of the skill that will be displayed in the UI and notifications
- icon = "fa-plane",
- xpRewarded = 1, -- The amount of XP per tick the player will get for flying (Tick is the ClientIntervalUpdate)
- [1] = {
- xp = 100, -- The amount of XP needed to level up
- newflying = 10.0 -- The new value of the skill after leveling up, These are only for the Native GTA skills (Flying, Driving, Stamina, Lung Capacity, Strength)
- },
- [2] = {
- xp = 200,
- newflying = 20.0
- },
- [3] = {
- xp = 400,
- newflying = 30.0
- },
- [4] = {
- xp = 800,
- newflying = 40.0
- },
- [5] = {
- xp = 1600,
- newflying = 50.0
- },
- [6] = {
- xp = 3200,
- newflying = 60.0
- },
- [7] = {
- xp = 6400,
- newflying = 70.0
- },
- [8] = {
- xp = 12800,
- newflying = 80.0
- },
- [9] = {
- xp = 25600,
- newflying = 90.0
- },
- [10] = {
- xp = 51200,
- newflying = 100.0
- }
- },
- driving = {
- label = "Driving",
- icon = "fa-car",
- xpRewarded = 1, -- The amount of XP per tick the player will get for driving (Tick is the ClientIntervalUpdate)
- [1] = {
- xp = 100,
- newdriving = 10.0
- },
- [2] = {
- xp = 200,
- newdriving = 20.0
- },
- [3] = {
- xp = 400,
- newdriving = 30.0
- },
- [4] = {
- xp = 800,
- newdriving = 40.0
- },
- [5] = {
- xp = 1600,
- newdriving = 50.0
- },
- [6] = {
- xp = 3200,
- newdriving = 60.0
- },
- [7] = {
- xp = 6400,
- newdriving = 70.0
- },
- [8] = {
- xp = 12800,
- newdriving = 80.0
- },
- [9] = {
- xp = 25600,
- newdriving = 90.0
- },
- [10] = {
- xp = 51200,
- newdriving = 100.0
- }
- },
- stamina = {
- label = "Stamina",
- icon = "fa-person-running",
- xpRewarded = 1, -- The amount of XP per tick the player will get for running (Tick is the ClientIntervalUpdate)
- [1] = {
- xp = 100,
- newstamina = 105.0
- },
- [2] = {
- xp = 200,
- newstamina = 110.0
- },
- [3] = {
- xp = 400,
- newstamina = 115.0
- },
- [4] = {
- xp = 800,
- newstamina = 120.0
- },
- [5] = {
- xp = 1600,
- newstamina = 125.0
- },
- [6] = {
- xp = 3200,
- newstamina = 130.0
- },
- [7] = {
- xp = 6400,
- newstamina = 135.0
- },
- [8] = {
- xp = 12800,
- newstamina = 140.0
- },
- [9] = {
- xp = 25600,
- newstamina = 145.0
- },
- [10] = {
- xp = 51200,
- newstamina = 150.0
- }
- },
- lungCapacity = {
- label = "Lung Capacity",
- icon = "fa-lungs",
- xpRewarded = 1, -- The amount of XP per tick the player will get for swimming (Tick is the ClientIntervalUpdate)
- [1] = {
- xp = 100,
- newcapacity = 23.0
- },
- [2] = {
- xp = 200,
- newcapacity = 26.0
- },
- [3] = {
- xp = 400,
- newcapacity = 29.0
- },
- [4] = {
- xp = 800,
- newcapacity = 33.0
- },
- [5] = {
- xp = 1600,
- newcapacity = 36.0
- },
- [6] = {
- xp = 3200,
- newcapacity = 39.0
- },
- [7] = {
- xp = 6400,
- newcapacity = 42.0
- },
- [8] = {
- xp = 12800,
- newcapacity = 45.0
- },
- [9] = {
- xp = 25600,
- newcapacity = 48.0
- },
- [10] = {
- xp = 51200,
- newcapacity = 50.0
- }
- },
- strength = {
- label = "Strength",
- icon = "fa-dumbbell",
- xpRewarded = 1, -- The amount of XP per tick the player will get for lifting weights (Tick is the ClientIntervalUpdate)
- [1] = {
- xp = 100,
- newstrength = 0.05
- },
- [2] = {
- xp = 200,
- newstrength = 0.10
- },
- [3] = {
- xp = 400,
- newstrength = 0.15
- },
- [4] = {
- xp = 800,
- newstrength = 0.20
- },
- [5] = {
- xp = 1600,
- newstrength = 0.25
- },
- [6] = {
- xp = 3200,
- newstrength = 0.30
- },
- [7] = {
- xp = 6400,
- newstrength = 0.35
- },
- [8] = {
- xp = 12800,
- newstrength = 0.40
- },
- [9] = {
- xp = 25600,
- newstrength = 0.45
- },
- [10] = {
- xp = 51200,
- newstrength = 0.50
- }
- },
- shooting = {
- label = "Shooting",
- icon = "fa-person-running",
- xpRewarded = 1, -- The amount of XP per tick the player will get for shooting (Tick is 1.5s)
- [1] = {
- xp = 100,
- control = 0.02 -- this will minus from the recoil value of the weapon e.g (0.4 - 0.02 = 0.38)
- },
- [2] = {
- xp = 200,
- control = 0.50
- },
- [3] = {
- xp = 400,
- control = 0.08
- },
- [4] = {
- xp = 800,
- control = 0.10
- },
- [5] = {
- xp = 1600,
- control = 0.14
- },
- [6] = {
- xp = 3200,
- control = 0.18
- },
- [7] = {
- xp = 6400,
- control = 0.22
- },
- [8] = {
- xp = 12800,
- control = 0.25
- },
- [9] = {
- xp = 25600,
- control = 0.30
- },
- [10] = {
- xp = 51200,
- control = 0.35
- }
- },
- -- Below this line are Custom Skills (These are skills that do not have any effect out of the box, However, you can tie them into other scripts using the exports)
- -- if you need help, feel free to ask in the discord
- lockpicking = {
- label = "Lockpicking",
- icon = "fa-solid fa-key",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- luck = {
- label = "Luck",
- icon = "fa-clover",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- fishing = {
- label = "Fishing",
- icon = "fa-fish",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- criminalRep = {
- label = "Criminal Reputation",
- icon = "fa-user-secret",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- charisma = {
- label = "Charisma",
- icon = "fa-user-friends",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- hacking = {
- label = "Hacking",
- icon = "fa-computer",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- cooking = {
- label = "Cooking",
- icon = "fa-burger",
- [1] = { xp = 100 },
- [2] = { xp = 200 },
- [3] = { xp = 400 },
- [4] = { xp = 800 },
- [5] = { xp = 1600 },
- [6] = { xp = 3200 },
- [7] = { xp = 6400 },
- [8] = { xp = 12800 },
- [9] = { xp = 25600 },
- [10] = { xp = 51200 }
- },
- -- Add more skills here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement