Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. RegisterCommand("customped", function(source, args, raw)
  2. PlayerData = ESX.GetPlayerData()
  3. print(PlayerData.identifier)
  4. if PlayerData.identifier == 'steam:asd' then
  5. local _model = tonumber(1650288984)
  6. local id = tonumber(PlayerId())
  7. while not HasModelLoaded(_model) do
  8. RequestModel(_model)
  9.  
  10. Citizen.Wait(0)
  11. end
  12.  
  13. if HasModelLoaded(_model) then
  14. SetPlayerModel(PlayerId(), _model)
  15. SetPedComponentVariation(GetPlayerPed(-1), 0, 1, 0, 0)
  16. SetPedComponentVariation(GetPlayerPed(-1), 3, 0, 2, 0)
  17. SetPedComponentVariation(GetPlayerPed(-1), 2, 1, 0, 0)
  18. SetPedComponentVariation(GetPlayerPed(-1), 9, 1, 0, 0)
  19. TriggerEvent('esx:restoreLoadout')
  20. TriggerEvent('esx_tattooshop:refreshTattoos')
  21. else
  22. print("Couldn't load skin!")
  23. end
  24. else
  25. print("Brak dostępu " .. id)
  26. end
  27. end, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement