Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. Citizen.CreateThread(function klar()
  2. while true do
  3. Citizen.Wait(10)
  4. distance2 = GetDistanceBetweenCoords(-413.28, 1083.13, 327.68, GetEntityCoords(GetPlayerPed(-1)))
  5. --if uppdrag2 then
  6. if distance2 < 10 then
  7. DrawMarker(27, -413.28, 1083.13, 327.68, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 1.0, 1.0, 0.75, 0, 255, 0, 100, false, true, 2, false, false, false, false)
  8. if distance2 < 1.5 then
  9. if IsControlJustPressed(1, Keys["E"]) then
  10. ESX.Game.SpawnObject("w_pi_pistol", {x = 414.16, y = 1083.34, z = 327.68}, function(obj)
  11. PlaceObjectOnGroundProperly(obj)
  12. end)
  13. SetEntityHeading(GetPlayerPed(-1), 71.98)
  14. SetEntityCoords(GetPlayerPed(-1),-143.48, 1083.3, 326.68, 1, 0, 0, 1)
  15. FreezeEntityPosition(GetPlayerPed(-1), true)
  16. RequestAnimDict('mini@repair')
  17. while not HasAnimDictLoaded('mini@repair') do
  18. Citizen.Wait(100)
  19. end
  20. TaskPlayAnim(GetPlayerPed(-1), 'mini@repair', "fixing_a_ped", 8.0, 8.0, -1, 50, 0, false, false, false)
  21. TimeLeft = 0
  22. repeat
  23. TriggerEvent("mt:missiontext", 'Du fixar en pistol del. Du har gjort ~r~' .. TimeLeft .. '%~w~ av jobbet', 1500)
  24. TimeLeft = TimeLeft + 1
  25. Citizen.Wait(200)
  26. until(TimeLeft == 100)
  27. ClearPedTasks(GetPlayerPed(-1))
  28. FreezeEntityPosition(GetPlayerPed(-1), false)
  29. TriggerEvent("mt:missiontext", 'Åk nu tbx till Ajde', 60000)
  30. end
  31. end
  32. end
  33. --end
  34. end
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement