Neler yeni

Foruma hoş geldin, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Türkiye'nin İlk ve tek FiveM forum adresi

Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
DF DF
DF DF
DF DF

Soru QB-TRUCKERJOB Yardım Gerekli

malacant

Üye
FT Kullanıcı
Katılım
4 yıl 22 gün
Mesajlar
30
arkadaşlar merhaba
qb-truckerjob yani kargoculuk mesleğim var fakat araçtan kutuları prop olarak eline almıyor animasyon yaparak alıyor götürüyor bırakıyor parada alıyor ama prop gelmiyor eline komut satırı aşağıda olduğu gibidir



if CurrentLocation ~= nil and currentCount < CurrentLocation.dropcount then
if #(pos - vector3(CurrentLocation.x, CurrentLocation.y, CurrentLocation.z)) < 40.0 and not IsPedInAnyVehicle(PlayerPedId()) then
sleep = 5
if not hasBox then
local vehicle = GetVehiclePedIsIn(PlayerPedId(), true)
if isTruckerVehicle(vehicle) and CurrentPlate == QBCore.Functions.GetPlate(vehicle) then
local trunkpos = GetOffsetFromEntityInWorldCoords(vehicle, 0, -2.5, 0)
if #(pos - vector3(trunkpos.x, trunkpos.y, trunkpos.z)) < 1.5 and not isWorking then
DrawText3D(trunkpos.x, trunkpos.y, trunkpos.z, "~g~E~w~ - Paketleri Al")
if IsControlJustReleased(0, 38) then
isWorking = true
QBCore.Functions.Progressbar("work_carrybox", "Picking products..", 2000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {
animDict = "anim@gangops@facility@servers@",
anim = "hotwire",
flags = 16,
}, {}, {}, function() -- Done
isWorking = false
StopAnimTask(PlayerPedId(), "anim@gangops@facility@servers@", "hotwire", 1.0)
TriggerEvent('animations:client:EmoteCommandStart', {"box"})
hasBox = true
end, function() -- Cancel
isWorking = false
StopAnimTask(PlayerPedId(), "anim@gangops@facility@servers@", "hotwire", 1.0)
QBCore.Functions.Notify("Canceld..", "error")
end)
end
else
DrawText3D(trunkpos.x, trunkpos.y, trunkpos.z, "Paketleri Al")
end
end
elseif hasBox then
if #(pos - vector3(CurrentLocation.x, CurrentLocation.y, CurrentLocation.z)) < 1.5 and not isWorking then
DrawText3D(CurrentLocation.x, CurrentLocation.y, CurrentLocation.z, "~g~E~w~ - Teslim Et")
if IsControlJustReleased(0, 38) then
isWorking = true
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
Wait(500)
TriggerEvent('animations:client:EmoteCommandStart', {"bumbin"})
QBCore.Functions.Progressbar("work_dropbox", "Paketler teslim ediliyor...", 2000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function() -- Done
isWorking = false
ClearPedTasks(PlayerPedId())
hasBox = false
currentCount = currentCount + 1
if currentCount == CurrentLocation.dropcount then
LocationsDone[#LocationsDone+1] = CurrentLocation.id
TriggerServerEvent("qb-shops:server:RestockShopItems", CurrentLocation.store)
QBCore.Functions.Notify("Paketleri teslim ettin, sonraki noktaya ilerle")
local chance = math.random(1,100)
if chance < 26 then
TriggerServerEvent('qb-trucker:server:nano')
end
if CurrentBlip ~= nil then
RemoveBlip(CurrentBlip)
ClearAllBlipRoutes()
CurrentBlip = nil
end
CurrentLocation = nil
currentCount = 0
JobsDone = JobsDone + 1
getNewLocation()
end
end, function() -- Cancel
isWorking = false
ClearPedTasks(PlayerPedId())
QBCore.Functions.Notify("İptal Edildi", "error")
end)
end
else
DrawText3D(CurrentLocation.x, CurrentLocation.y, CurrentLocation.z, "Teslim Et")
end
end
end
end
Wait(sleep)
end
ThreadAlreadyRan = false
end)
end
end
 
DF
Merhaba,

Konu Katagorisi Tarafımca Değiştirilmiştir.

İyi Forumlar Dilerim , Saygılarımla..
 
DF

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Bu konuyu görüntüleyen kullanıcılar

Tema düzenleyici

Tema özelletirmeleri

Granit arka planlar

Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!