Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function klar()
- while true do
- Citizen.Wait(10)
- distance2 = GetDistanceBetweenCoords(-413.28, 1083.13, 327.68, GetEntityCoords(GetPlayerPed(-1)))
- --if uppdrag2 then
- if distance2 < 10 then
- 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)
- if distance2 < 1.5 then
- if IsControlJustPressed(1, Keys["E"]) then
- ESX.Game.SpawnObject("w_pi_pistol", {x = 414.16, y = 1083.34, z = 327.68}, function(obj)
- PlaceObjectOnGroundProperly(obj)
- end)
- SetEntityHeading(GetPlayerPed(-1), 71.98)
- SetEntityCoords(GetPlayerPed(-1),-143.48, 1083.3, 326.68, 1, 0, 0, 1)
- FreezeEntityPosition(GetPlayerPed(-1), true)
- RequestAnimDict('mini@repair')
- while not HasAnimDictLoaded('mini@repair') do
- Citizen.Wait(100)
- end
- TaskPlayAnim(GetPlayerPed(-1), 'mini@repair', "fixing_a_ped", 8.0, 8.0, -1, 50, 0, false, false, false)
- TimeLeft = 0
- repeat
- TriggerEvent("mt:missiontext", 'Du fixar en pistol del. Du har gjort ~r~' .. TimeLeft .. '%~w~ av jobbet', 1500)
- TimeLeft = TimeLeft + 1
- Citizen.Wait(200)
- until(TimeLeft == 100)
- ClearPedTasks(GetPlayerPed(-1))
- FreezeEntityPosition(GetPlayerPed(-1), false)
- TriggerEvent("mt:missiontext", 'Åk nu tbx till Ajde', 60000)
- end
- end
- end
- --end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement