Advertisement
Guest User

Untitled

a guest
May 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. while true do
  3. DisableControlAction( 0, 20, true )
  4. Wait(0)
  5. local playerPed = GetPlayerPed(-1)
  6. if IsControlJustPressed(1,244) then
  7. if IsPedInAnyVehicle(playerPed, false) then
  8. drawNotification("~r~ Du bist in einem Fahrzeug!")
  9. else
  10. TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_COP_IDLES",0, false)
  11. end
  12. elseif IsControlJustPressed(1,323) then
  13. if IsPedInAnyVehicle(playerPed, false) then
  14. drawNotification("~r~ Du bist in einem Fahrzeug!")
  15. else
  16. TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_PAPARAZZI", 0, false)
  17. end
  18. elseif IsControlJustPressed(1, 8) then
  19. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  20.  
  21. else
  22. ClearPedTasks(playerPed)
  23.  
  24. end
  25. elseif IsControlJustPressed(1, 9) then
  26. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  27.  
  28. else
  29. ClearPedTasks(playerPed)
  30.  
  31. end
  32. elseif IsDisabledControlJustPressed(1, 20) then
  33. if IsEntityPlayingAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 3) then
  34. ClearPedTasks(playerPed)
  35. else
  36. loadAnimDict("reaction@intimidation@cop@unarmed")
  37. TaskPlayAnim(playerPed, "reaction@intimidation@cop@unarmed", "intro", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
  38. end
  39. elseif IsControlJustPressed(1, 166) then
  40. TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TIME_OF_DEATH", 0, false)
  41. elseif IsControlJustPressed(1, 167) then
  42. TaskStartScenarioInPlace(playerPed, "CODE_HUMAN_MEDIC_TEND_TO_DEAD", 0, false)
  43. end
  44. end
  45. end)
  46.  
  47. function drawNotification(text)
  48. SetNotificationTextEntry("STRING")
  49. AddTextComponentString(text)
  50. DrawNotification(false, false)
  51. end
  52.  
  53. function loadAnimDict( dict )
  54. while ( not HasAnimDictLoaded( dict ) ) do
  55. RequestAnimDict( dict )
  56. Citizen.Wait( 0 )
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement