Advertisement
Guest User

Config

a guest
Nov 3rd, 2024
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.67 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.Debug = false -- Set this to true to enable debug mode
  4.  
  5. Config.Framework = 'qbx' -- Change to 'qb' or 'qbx' depending on your framework (If not supported, see the instructions in the README.md)
  6.  
  7. Config.NotifySystem = 'qbx' -- Can be 'qbx' or 'qb' or 'ox' or 'none' depending on your framework
  8.  
  9. Config.Target = 'ox' -- Can be 'ox' or 'qb'
  10.  
  11. Config.ClientUpdateInterval = 10 -- Interval between client checks in SECONDS (Mainly Used to see if the player is running, swimming, etc)
  12.  
  13. Config.ServerUpdateInterval = 5 -- Interval Between Server Updates in MINUTES to apply the skills
  14.  
  15. Config.GymEquipment = {
  16. -- Want to make the xp Varied? add the following: math.random(10, 20) -- This will give a random number between 10 and 20
  17. pullUpXPReward = 10, -- The amount of XP the player will get for using this equipment
  18.  
  19. 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
  20.  
  21. treadmillXPReward = 10,
  22.  
  23. method = 'circle', -- Can be 'circle' or 'bar' or can be skillcheck
  24.  
  25. -- If Method == skillCheck then this will be used below
  26. skillDifficulty = {
  27. 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
  28. inputs = { 'w', 'a', 's', 'd' } -- The keys the player needs to press to complete the skill check
  29. },
  30.  
  31. locations = {
  32. beach = {
  33. pullUps = {
  34. [1] = {
  35. location = vector3(-1204.77, -1564.36, 4.61),
  36. rotation = 30.62,
  37. size = vector3(1.8, 1.8, 1.8),
  38. },
  39. [2] = {
  40. location = vector3(-1200.04, -1571.16, 4.61),
  41. rotation = 211.31,
  42. size = vector3(1.8, 1.8, 1.8),
  43. },
  44. },
  45. weights = {
  46. [1] = {
  47. location = vector3(-1197.9748535156, -1564.6409912109, 4.3101298332214),
  48. rotation = 0,
  49. size = vector3(1.0, 1.0, 1.0),
  50. },
  51. [2] = {
  52. location = vector3(-1209.7298583984, -1558.5817871094, 4.3168441772461),
  53. rotation = 0,
  54. size = vector3(1.0, 1.0, 1.0),
  55. },
  56. },
  57. treadmill = {
  58. [1] = {
  59. location = vector3(-1202.9887695312, -1569.9638671875, 3.8079692840576),
  60. rotation = 30.62,
  61. size = vector3(1.8, 1.8, 2.5),
  62. },
  63. },
  64. }
  65. }
  66. }
  67.  
  68. Config.UseRecoil = true -- If you don't want to use the recoil system, set this to false
  69.  
  70. 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)
  71. [GetHashKey("WEAPON_PISTOL")] = 0.2,
  72. [GetHashKey("WEAPON_COMBATPISTOL")] = 0.2,
  73. [GetHashKey("WEAPON_APPISTOL")] = 0.2,
  74. [GetHashKey("WEAPON_MICROSMG")] = 0.25,
  75. [GetHashKey("WEAPON_SMG")] = 0.25,
  76. [GetHashKey("WEAPON_ASSAULTSMG")] = 0.25,
  77. [GetHashKey("WEAPON_ASSAULTRIFLE")] = 0.4,
  78. [GetHashKey("WEAPON_CARBINERIFLE")] = 0.4,
  79. [GetHashKey("WEAPON_ADVANCEDRIFLE")] = 0.4,
  80. [GetHashKey("WEAPON_MG")] = 0.5,
  81. [GetHashKey("WEAPON_COMBATMG")] = 0.5,
  82. [GetHashKey("WEAPON_PUMPSHOTGUN")] = 0.3,
  83. [GetHashKey("WEAPON_SAWNOFFSHOTGUN")] = 0.3,
  84. [GetHashKey("WEAPON_ASSAULTSHOTGUN")] = 0.3,
  85. [GetHashKey("WEAPON_BULLPUPSHOTGUN")] = 0.3,
  86. [GetHashKey("WEAPON_SNIPERRIFLE")] = 0.5,
  87. [GetHashKey("WEAPON_HEAVYSNIPER")] = 0.5,
  88. [GetHashKey("WEAPON_GRENADELAUNCHER")] = 0.4,
  89. [GetHashKey("WEAPON_RPG")] = 0.5,
  90. }
  91.  
  92. -- Exports Available to you are:
  93. -- Client:
  94. -- exports.o_skills:getXP(skill)
  95. -- exports.o_skills:addXP(skill, amount)
  96.  
  97. -- Server:
  98. -- exports.o_skills:getServerXP(source, skill)
  99. -- exports.o_skills:addServerXP(source, skill, amount)
  100.  
  101. Config.Skills = {
  102. --- Below this line are GTA Native skills (These have effects within this script E.g Recoil, Stamina, etc)
  103. flying = { -- Skill Name (We use this to reference the skill in the code, e.g when using the addxp command)
  104. label = "Flying", -- The name of the skill that will be displayed in the UI and notifications
  105. icon = "fa-plane",
  106. xpRewarded = 1, -- The amount of XP per tick the player will get for flying (Tick is the ClientIntervalUpdate)
  107. [1] = {
  108. xp = 100, -- The amount of XP needed to level up
  109. 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)
  110. },
  111. [2] = {
  112. xp = 200,
  113. newflying = 20.0
  114. },
  115. [3] = {
  116. xp = 400,
  117. newflying = 30.0
  118. },
  119. [4] = {
  120. xp = 800,
  121. newflying = 40.0
  122. },
  123. [5] = {
  124. xp = 1600,
  125. newflying = 50.0
  126. },
  127. [6] = {
  128. xp = 3200,
  129. newflying = 60.0
  130. },
  131. [7] = {
  132. xp = 6400,
  133. newflying = 70.0
  134. },
  135. [8] = {
  136. xp = 12800,
  137. newflying = 80.0
  138. },
  139. [9] = {
  140. xp = 25600,
  141. newflying = 90.0
  142. },
  143. [10] = {
  144. xp = 51200,
  145. newflying = 100.0
  146. }
  147. },
  148. driving = {
  149. label = "Driving",
  150. icon = "fa-car",
  151. xpRewarded = 1, -- The amount of XP per tick the player will get for driving (Tick is the ClientIntervalUpdate)
  152. [1] = {
  153. xp = 100,
  154. newdriving = 10.0
  155. },
  156. [2] = {
  157. xp = 200,
  158. newdriving = 20.0
  159. },
  160. [3] = {
  161. xp = 400,
  162. newdriving = 30.0
  163. },
  164. [4] = {
  165. xp = 800,
  166. newdriving = 40.0
  167. },
  168. [5] = {
  169. xp = 1600,
  170. newdriving = 50.0
  171. },
  172. [6] = {
  173. xp = 3200,
  174. newdriving = 60.0
  175. },
  176. [7] = {
  177. xp = 6400,
  178. newdriving = 70.0
  179. },
  180. [8] = {
  181. xp = 12800,
  182. newdriving = 80.0
  183. },
  184. [9] = {
  185. xp = 25600,
  186. newdriving = 90.0
  187. },
  188. [10] = {
  189. xp = 51200,
  190. newdriving = 100.0
  191. }
  192. },
  193. stamina = {
  194. label = "Stamina",
  195. icon = "fa-person-running",
  196. xpRewarded = 1, -- The amount of XP per tick the player will get for running (Tick is the ClientIntervalUpdate)
  197. [1] = {
  198. xp = 100,
  199. newstamina = 105.0
  200. },
  201. [2] = {
  202. xp = 200,
  203. newstamina = 110.0
  204. },
  205. [3] = {
  206. xp = 400,
  207. newstamina = 115.0
  208. },
  209. [4] = {
  210. xp = 800,
  211. newstamina = 120.0
  212. },
  213. [5] = {
  214. xp = 1600,
  215. newstamina = 125.0
  216. },
  217. [6] = {
  218. xp = 3200,
  219. newstamina = 130.0
  220. },
  221. [7] = {
  222. xp = 6400,
  223. newstamina = 135.0
  224. },
  225. [8] = {
  226. xp = 12800,
  227. newstamina = 140.0
  228. },
  229. [9] = {
  230. xp = 25600,
  231. newstamina = 145.0
  232. },
  233. [10] = {
  234. xp = 51200,
  235. newstamina = 150.0
  236. }
  237. },
  238. lungCapacity = {
  239. label = "Lung Capacity",
  240. icon = "fa-lungs",
  241. xpRewarded = 1, -- The amount of XP per tick the player will get for swimming (Tick is the ClientIntervalUpdate)
  242. [1] = {
  243. xp = 100,
  244. newcapacity = 23.0
  245. },
  246. [2] = {
  247. xp = 200,
  248. newcapacity = 26.0
  249. },
  250. [3] = {
  251. xp = 400,
  252. newcapacity = 29.0
  253. },
  254. [4] = {
  255. xp = 800,
  256. newcapacity = 33.0
  257. },
  258. [5] = {
  259. xp = 1600,
  260. newcapacity = 36.0
  261. },
  262. [6] = {
  263. xp = 3200,
  264. newcapacity = 39.0
  265. },
  266. [7] = {
  267. xp = 6400,
  268. newcapacity = 42.0
  269. },
  270. [8] = {
  271. xp = 12800,
  272. newcapacity = 45.0
  273. },
  274. [9] = {
  275. xp = 25600,
  276. newcapacity = 48.0
  277. },
  278. [10] = {
  279. xp = 51200,
  280. newcapacity = 50.0
  281. }
  282. },
  283. strength = {
  284. label = "Strength",
  285. icon = "fa-dumbbell",
  286. xpRewarded = 1, -- The amount of XP per tick the player will get for lifting weights (Tick is the ClientIntervalUpdate)
  287. [1] = {
  288. xp = 100,
  289. newstrength = 0.05
  290. },
  291. [2] = {
  292. xp = 200,
  293. newstrength = 0.10
  294. },
  295. [3] = {
  296. xp = 400,
  297. newstrength = 0.15
  298. },
  299. [4] = {
  300. xp = 800,
  301. newstrength = 0.20
  302. },
  303. [5] = {
  304. xp = 1600,
  305. newstrength = 0.25
  306. },
  307. [6] = {
  308. xp = 3200,
  309. newstrength = 0.30
  310. },
  311. [7] = {
  312. xp = 6400,
  313. newstrength = 0.35
  314. },
  315. [8] = {
  316. xp = 12800,
  317. newstrength = 0.40
  318. },
  319. [9] = {
  320. xp = 25600,
  321. newstrength = 0.45
  322. },
  323. [10] = {
  324. xp = 51200,
  325. newstrength = 0.50
  326. }
  327. },
  328. shooting = {
  329. label = "Shooting",
  330. icon = "fa-person-running",
  331. xpRewarded = 1, -- The amount of XP per tick the player will get for shooting (Tick is 1.5s)
  332.  
  333. [1] = {
  334. xp = 100,
  335. control = 0.02 -- this will minus from the recoil value of the weapon e.g (0.4 - 0.02 = 0.38)
  336. },
  337. [2] = {
  338. xp = 200,
  339. control = 0.50
  340. },
  341. [3] = {
  342. xp = 400,
  343. control = 0.08
  344. },
  345. [4] = {
  346. xp = 800,
  347. control = 0.10
  348. },
  349. [5] = {
  350. xp = 1600,
  351. control = 0.14
  352. },
  353. [6] = {
  354. xp = 3200,
  355. control = 0.18
  356. },
  357. [7] = {
  358. xp = 6400,
  359. control = 0.22
  360. },
  361. [8] = {
  362. xp = 12800,
  363. control = 0.25
  364. },
  365. [9] = {
  366. xp = 25600,
  367. control = 0.30
  368. },
  369. [10] = {
  370. xp = 51200,
  371. control = 0.35
  372. }
  373. },
  374. -- 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)
  375. -- if you need help, feel free to ask in the discord
  376. lockpicking = {
  377. label = "Lockpicking",
  378. icon = "fa-solid fa-key",
  379. [1] = { xp = 100 },
  380. [2] = { xp = 200 },
  381. [3] = { xp = 400 },
  382. [4] = { xp = 800 },
  383. [5] = { xp = 1600 },
  384. [6] = { xp = 3200 },
  385. [7] = { xp = 6400 },
  386. [8] = { xp = 12800 },
  387. [9] = { xp = 25600 },
  388. [10] = { xp = 51200 }
  389. },
  390. luck = {
  391. label = "Luck",
  392. icon = "fa-clover",
  393. [1] = { xp = 100 },
  394. [2] = { xp = 200 },
  395. [3] = { xp = 400 },
  396. [4] = { xp = 800 },
  397. [5] = { xp = 1600 },
  398. [6] = { xp = 3200 },
  399. [7] = { xp = 6400 },
  400. [8] = { xp = 12800 },
  401. [9] = { xp = 25600 },
  402. [10] = { xp = 51200 }
  403. },
  404. fishing = {
  405. label = "Fishing",
  406. icon = "fa-fish",
  407. [1] = { xp = 100 },
  408. [2] = { xp = 200 },
  409. [3] = { xp = 400 },
  410. [4] = { xp = 800 },
  411. [5] = { xp = 1600 },
  412. [6] = { xp = 3200 },
  413. [7] = { xp = 6400 },
  414. [8] = { xp = 12800 },
  415. [9] = { xp = 25600 },
  416. [10] = { xp = 51200 }
  417. },
  418. criminalRep = {
  419. label = "Criminal Reputation",
  420. icon = "fa-user-secret",
  421. [1] = { xp = 100 },
  422. [2] = { xp = 200 },
  423. [3] = { xp = 400 },
  424. [4] = { xp = 800 },
  425. [5] = { xp = 1600 },
  426. [6] = { xp = 3200 },
  427. [7] = { xp = 6400 },
  428. [8] = { xp = 12800 },
  429. [9] = { xp = 25600 },
  430. [10] = { xp = 51200 }
  431. },
  432. charisma = {
  433. label = "Charisma",
  434. icon = "fa-user-friends",
  435. [1] = { xp = 100 },
  436. [2] = { xp = 200 },
  437. [3] = { xp = 400 },
  438. [4] = { xp = 800 },
  439. [5] = { xp = 1600 },
  440. [6] = { xp = 3200 },
  441. [7] = { xp = 6400 },
  442. [8] = { xp = 12800 },
  443. [9] = { xp = 25600 },
  444. [10] = { xp = 51200 }
  445. },
  446. hacking = {
  447. label = "Hacking",
  448. icon = "fa-computer",
  449. [1] = { xp = 100 },
  450. [2] = { xp = 200 },
  451. [3] = { xp = 400 },
  452. [4] = { xp = 800 },
  453. [5] = { xp = 1600 },
  454. [6] = { xp = 3200 },
  455. [7] = { xp = 6400 },
  456. [8] = { xp = 12800 },
  457. [9] = { xp = 25600 },
  458. [10] = { xp = 51200 }
  459. },
  460. cooking = {
  461. label = "Cooking",
  462. icon = "fa-burger",
  463. [1] = { xp = 100 },
  464. [2] = { xp = 200 },
  465. [3] = { xp = 400 },
  466. [4] = { xp = 800 },
  467. [5] = { xp = 1600 },
  468. [6] = { xp = 3200 },
  469. [7] = { xp = 6400 },
  470. [8] = { xp = 12800 },
  471. [9] = { xp = 25600 },
  472. [10] = { xp = 51200 }
  473. },
  474.  
  475. -- Add more skills here
  476. }
  477.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement