Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if data.current.value == 'doorvakt_1' then
- TriggerEvent('skinchanger:getSkin', function(skin)
- local playerPed = GetPlayerPed(-1)
- if skin.sex == 0 then
- local clothesSkin = {
- ['tshirt_1'] = 90, ['tshirt_2'] = 1,
- ['torso_1'] = 32, ['torso_2'] = 0,
- ['decals_1'] = 0, ['decals_2'] = 0,
- ['arms'] = 6,
- ['pants_1'] = 28, ['pants_2'] = 0,
- ['shoes_1'] = 40, ['shoes_2'] = 8,
- ['chain_1'] = 0, ['chain_2'] = 0
- }
- TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
- RequestAnimSet("MOVE_M@POSH@")
- while not HasAnimSetLoaded("MOVE_M@POSH@") do
- Citizen.Wait(0)
- end
- SetPedMovementClipset(playerPed, "MOVE_M@POSH@", true)
- else
- local clothesSkin = {
- ['tshirt_1'] = 90, ['tshirt_2'] = 1,
- ['torso_1'] = 32, ['torso_2'] = 0,
- ['decals_1'] = 0, ['decals_2'] = 0,
- ['arms'] = 6,
- ['pants_1'] = 28, ['pants_2'] = 0,
- ['shoes_1'] = 40, ['shoes_2'] = 8,
- ['chain_1'] = 0, ['chain_2'] = 0
- }
- TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
- RequestAnimSet("MOVE_F@POSH@")
- while not HasAnimSetLoaded("MOVE_F@POSH@") do
- Citizen.Wait(0)
- end
- SetPedMovementClipset(playerPed, "MOVE_F@POSH@", true)
- end
- ClearPedBloodDamage(playerPed)
- ResetPedVisibleDamage(playerPed)
- ClearPedLastWeaponDamage(playerPed)
- isBarman = false
- end)
- end
- if data.current.value == 'doorvakt_2' then
- TriggerEvent('skinchanger:getSkin', function(skin)
- local playerPed = GetPlayerPed(-1)
- if skin.sex == 0 then
- local clothesSkin = {
- ['tshirt_1'] = 31, ['tshirt_2'] = 9,
- ['torso_1'] = 32, ['torso_2'] = 3,
- ['decals_1'] = 0, ['decals_2'] = 0,
- ['arms'] = 6,
- ['pants_1'] = 28, ['pants_2'] = 3,
- ['shoes_1'] = 21, ['shoes_2'] = 4,
- ['chain_1'] = 0, ['chain_2'] = 0
- }
- TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
- RequestAnimSet("MOVE_M@POSH@")
- while not HasAnimSetLoaded("MOVE_M@POSH@") do
- Citizen.Wait(0)
- end
- SetPedMovementClipset(playerPed, "MOVE_M@POSH@", true)
- else
- local clothesSkin = {
- ['tshirt_1'] = 31, ['tshirt_2'] = 9,
- ['torso_1'] = 32, ['torso_2'] = 3,
- ['decals_1'] = 0, ['decals_2'] = 0,
- ['arms'] = 6,
- ['pants_1'] = 28, ['pants_2'] = 3,
- ['shoes_1'] = 21, ['shoes_2'] = 4,
- ['chain_1'] = 0, ['chain_2'] = 0
- }
- TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
- RequestAnimSet("MOVE_F@POSH@")
- while not HasAnimSetLoaded("MOVE_F@POSH@") do
- Citizen.Wait(0)
- end
- SetPedMovementClipset(playerPed, "MOVE_F@POSH@", true)
- end
- ClearPedBloodDamage(playerPed)
- ResetPedVisibleDamage(playerPed)
- ClearPedLastWeaponDamage(playerPed)
- isBarman = false
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement