#qb-taxijob ped
1 messages · Page 1 of 1 (latest)
Hi.
This is what doesnt happen with qb-taxijob as default.
If you have modified it, look for a double trigger of spawning the ped at that location.
If you didnt make big modifications, download the latest qb-taxijob and use that instead of your current one.
didnt modify it at all but you right, grabbed a fresh copy
this is what does happen with fresh copy of qb-taxijob,
to recreate: stop the resource and start it again.
Ideally you shouldn't be restarting the resource in a live server. More ideally, the resource should properly cleanup on resource stop.
imma look at qb-shops and see how the ped is cleaned up there and try to understand more.
Solved ?
nope, ped spawns multiple times through out the day without restarting the resource. still looking into it.
Got it
in qb-taxijob/client/main.lua find
-- setup qb-target
function setupTarget()
CreateThread(function()
exports['qb-target']:SpawnPed({
model = 'a_m_m_indian_01',
coords = vector4(901.34, -170.06, 74.08, 228.81),
minusOne = true,
freeze = true,
invincible = true,
blockevents = true,
animDict = 'abigail_mcs_1_concat-0',
anim = 'csb_abigail_dual-0',
flag = 1,
scenario = 'WORLD_HUMAN_AA_COFFEE',
target = {
options = {
{
type = 'client',
event = 'qb-taxijob:client:requestcab',
icon = 'fas fa-sign-in-alt',
label = '🚕 Request Taxi Cab',
job = jobRequired,
}
},
distance = 2.5,
},
spawnNow = true,
currentpednumber = 0,
})
end)
end