Advertisement
Guest User

apparently really important function

a guest
Feb 19th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. RegisterNetEvent('esx:setJob') -- This one is for breaking every function when players job is changed in game, so that if it's job is police they can no longer rob the bank but instead control the doors. IT IS VERY IMPORTANT!
  2. AddEventHandler('esx:setJob', function(job)
  3. PlayerData.job = job
  4. UTK.policebreak = true
  5. UTK.stage0break = true
  6. UTK.stage1break = true
  7. UTK.stage2break = true
  8. UTK.stage3break = true
  9. UTK.stage4break = true
  10. UTK.stagelootbreak = true
  11. UTK.disableinput = false
  12. UTK.cur = 7
  13. UTK.starttimer = false
  14. UTK.vaulttime = 0
  15. UTK.alarmblip = nil
  16. UTK.grabber = false
  17. UTK.searchlocations = {
  18. {coords = {x = 233.40, y = 221.53, z = 110.40}, status = false},
  19. {coords = {x = 240.93, y = 211.12, z = 110.40}, status = false},
  20. {coords = {x = 246.54, y = 208.86, z = 110.40}, status = false},
  21. {coords = {x = 264.33, y = 212.16, z = 110.40}, status = false},
  22. {coords = {x = 252.87, y = 222.36, z = 106.35}, status = false},
  23. {coords = {x = 249.71, y = 227.84, z = 106.35}, status = false},
  24. {coords = {x = 244.80, y = 229.70, z = 106.35}, status = false}
  25. }
  26. UTK.checks.hack1 = false
  27. UTK.checks.hack2 = false
  28. UTK.checks.thermal1 = false
  29. UTK.checks.thermal2 = false
  30. UTK.checks.id1 = false
  31. UTK.checks.id2 = false
  32. UTK.checks.idfound = false
  33. UTK.checks.grab1 = false
  34. UTK.checks.grab2 = false
  35. UTK.checks.grab3 = false
  36. UTK.checks.grab4 = false
  37. UTK.checks.grab5 = false
  38. UTK.searchinfo = {
  39. random = math.random(1, UTK.cur),
  40. found = false
  41. }
  42. program = 0
  43. scaleform = nil
  44. lives = 5
  45. ClickReturn = nil
  46. SorF = false
  47. Hacking = false
  48. UsingComputer = false
  49. Citizen.Wait(5000)
  50. UTK.policebreak = false
  51. UTK.hackfinish = false
  52. UTK.stagelootbreak = false
  53. UTK.stage0break = false
  54. UTK.stage1break = false
  55. UTK.stage2break = false
  56. UTK.stage3break = false
  57. UTK.stage4break = false
  58. UTK.initiator = false
  59. UTK:GetInfo()
  60. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement