Advertisement
izakj

Untitled

May 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. if data.current.value == 'doorvakt_1' then
  2.  
  3. TriggerEvent('skinchanger:getSkin', function(skin)
  4.  
  5. local playerPed = GetPlayerPed(-1)
  6.  
  7. if skin.sex == 0 then
  8.  
  9. local clothesSkin = {
  10. ['tshirt_1'] = 90, ['tshirt_2'] = 1,
  11. ['torso_1'] = 32, ['torso_2'] = 0,
  12. ['decals_1'] = 0, ['decals_2'] = 0,
  13. ['arms'] = 6,
  14. ['pants_1'] = 28, ['pants_2'] = 0,
  15. ['shoes_1'] = 40, ['shoes_2'] = 8,
  16. ['chain_1'] = 0, ['chain_2'] = 0
  17. }
  18. TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
  19.  
  20. RequestAnimSet("MOVE_M@POSH@")
  21. while not HasAnimSetLoaded("MOVE_M@POSH@") do
  22. Citizen.Wait(0)
  23. end
  24. SetPedMovementClipset(playerPed, "MOVE_M@POSH@", true)
  25.  
  26. else
  27.  
  28. local clothesSkin = {
  29. ['tshirt_1'] = 90, ['tshirt_2'] = 1,
  30. ['torso_1'] = 32, ['torso_2'] = 0,
  31. ['decals_1'] = 0, ['decals_2'] = 0,
  32. ['arms'] = 6,
  33. ['pants_1'] = 28, ['pants_2'] = 0,
  34. ['shoes_1'] = 40, ['shoes_2'] = 8,
  35. ['chain_1'] = 0, ['chain_2'] = 0
  36. }
  37. TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
  38.  
  39. RequestAnimSet("MOVE_F@POSH@")
  40. while not HasAnimSetLoaded("MOVE_F@POSH@") do
  41. Citizen.Wait(0)
  42. end
  43. SetPedMovementClipset(playerPed, "MOVE_F@POSH@", true)
  44.  
  45. end
  46.  
  47. ClearPedBloodDamage(playerPed)
  48. ResetPedVisibleDamage(playerPed)
  49. ClearPedLastWeaponDamage(playerPed)
  50.  
  51. isBarman = false
  52.  
  53. end)
  54.  
  55. end
  56.  
  57. if data.current.value == 'doorvakt_2' then
  58.  
  59. TriggerEvent('skinchanger:getSkin', function(skin)
  60.  
  61. local playerPed = GetPlayerPed(-1)
  62.  
  63. if skin.sex == 0 then
  64.  
  65. local clothesSkin = {
  66. ['tshirt_1'] = 31, ['tshirt_2'] = 9,
  67. ['torso_1'] = 32, ['torso_2'] = 3,
  68. ['decals_1'] = 0, ['decals_2'] = 0,
  69. ['arms'] = 6,
  70. ['pants_1'] = 28, ['pants_2'] = 3,
  71. ['shoes_1'] = 21, ['shoes_2'] = 4,
  72. ['chain_1'] = 0, ['chain_2'] = 0
  73. }
  74. TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
  75.  
  76. RequestAnimSet("MOVE_M@POSH@")
  77. while not HasAnimSetLoaded("MOVE_M@POSH@") do
  78. Citizen.Wait(0)
  79. end
  80. SetPedMovementClipset(playerPed, "MOVE_M@POSH@", true)
  81.  
  82. else
  83.  
  84. local clothesSkin = {
  85. ['tshirt_1'] = 31, ['tshirt_2'] = 9,
  86. ['torso_1'] = 32, ['torso_2'] = 3,
  87. ['decals_1'] = 0, ['decals_2'] = 0,
  88. ['arms'] = 6,
  89. ['pants_1'] = 28, ['pants_2'] = 3,
  90. ['shoes_1'] = 21, ['shoes_2'] = 4,
  91. ['chain_1'] = 0, ['chain_2'] = 0
  92. }
  93. TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
  94.  
  95. RequestAnimSet("MOVE_F@POSH@")
  96. while not HasAnimSetLoaded("MOVE_F@POSH@") do
  97. Citizen.Wait(0)
  98. end
  99. SetPedMovementClipset(playerPed, "MOVE_F@POSH@", true)
  100.  
  101. end
  102.  
  103. ClearPedBloodDamage(playerPed)
  104. ResetPedVisibleDamage(playerPed)
  105. ClearPedLastWeaponDamage(playerPed)
  106.  
  107. isBarman = false
  108.  
  109. end)
  110.  
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement