-- ESKİ HALİ
Citizen.CreateThread(function()
while true do
local ped = PlayerPedId()
Citizen.Wait(1)
if GetDistanceBetweenCoords(GetEntityCoords(ped), 610.0041, -420.511, 24.744, true) < 2 then -- Ped kordinat
DrawText3D(610.0041, -420.511, 24.744, " ~r~[E] ~w~MinerPC Montaj ~g~2500$") -- Yardımcı yazı
if IsControlJustReleased(1, 51) then
Citizen.Wait(15)
CaPc()
end
end
end
end)
--
-- YENİ HALİ
Citizen.CreateThread(function()
while true do
local sleep = 1250
local ped = PlayerPedId()
if GetDistanceBetweenCoords(GetEntityCoords(ped), 610.0041, -420.511, 24.744, true) < 2 then -- Ped kordinat
sleep = 3
DrawText3D(610.0041, -420.511, 24.744, " ~r~[E] ~w~MinerPC Montaj ~g~2500$") -- Yardımcı yazı
if IsControlJustReleased(1, 51) then
CaPc()
end
end
Citizen.Wait(sleep)
end
end)
--