#Raidjobv2 Timer on Case dose not go away
1 messages · Page 1 of 1 (latest)
Still Have a problem after killing everyone and opening the case no mail 
Using renewed?
No debug logs?
No im using JPR`s PhoneSystem
Do you get other mails?
So ichange the First mail and it works but the rest is not sending after opening the case
Changed where?
It's supposed to to be three emails.
After accepting a mission
After hacking the case
When the case is ready to open
Yes thats Correct
Found one Error
[ script:cw-raidjob2] SCRIPT ERROR: @cw-raidjob2/server/server.lua:455: No such export GetGroupByMembers in resource qb-phone
but Groups are turned offf
In the client side. Remove the call to that event where the error happens
Done but still dose not work 
Errors? Did you read the guide lines and debug yourself?
So i currently have No errors even with debug on and yea i mainly think its because of the Phone
not the actual script it selfes
Here is the mission how im dooing it with the console at the end
Can't really provide support on others paid scripts. Maybe someone else will drop by with info. good luck
Yea ima hop to his support maybe he can help thank tho 
This shows whatever your settings are they are trying to use the renewed phone groups. if your not using renewed phone i do believe there is config options for the base QB email system still
Scratch all that, looking through the Ox version online it does seem there is no standard email update for the section that he has problems with @civic kite
Server.lua
Client.lua
Is it only for renewed?
looking through the job updates/status is currently yes, since it uses the stages system in the groups
netevent at 454 in server file only directs out to renewed
there's no alternate for non renewed setup atm
There was also the issue here where a the getgroups or whatever was called
thats the issue im describing
Ah so an't that just be called and just like wrap that call in an if
since they are using a diff phone system obv groups arent integrated
and emails should work?
potentially yeah. but you gotta figure out the jobID shit how i got it setup there
xD your the one proposing an alternate 😛 thus the wording
but yeah it seems if people arent using renewed the updates wont work properly. so an alternate would need to be figured out
i know when i did the rework it was all focused on ox and renewed as a whole so
Like just wrapping the reneewd group things in the Config option?
Maybe? i dont think i have an standard QB email stuff left in there tbh
isn't it the same call for email?
wait, might be easier..
There are 4 email calls
the question is, is it still in the ox version?
i ripped out alot
if Config.UseRenewedPhoneGroups then
local group = exports['qb-phone']:GetGroupByMembers(source)
ActiveJobs[jobid].Stages = {
{ name = "Find your pickup point", isDone = true, id = 1 },
{ name = "Take out the hostiles", isDone = false, id = 2 },
{ name = "Grab the case", isDone = false, id = 3 }
}
exports['qb-phone']:setJobStatus(group, ("Transport Job"):format(), ActiveJobs[jobid].Stages)
else
for i, v in pairs(ActiveJobs[jobId].Group) do
if useDebug then
print('notifying player about Hostiles', i, v)
end
--Add Send Email Code.
end
end
end)```
Might be as simple as doing this right here
since that specific function is ONLY to notify the player the enemies spawned
its not re-used
Got the same issue, except error is bad argument #1 to 'SetTimeout'
QBCore.Functions.Notify(Lang:t("success.caseAquired"), 'success')
SetTimeout(Config.Jobs[CurrentJob.jobDiff].timer, function()
RemoveBlip(policeBlip)
end)
end
Worked it out, add the removeBlip in this function
local function caseGrabbed()
CurrentJob.case = nil
if not Config.UseRenewedPhoneGroups then
caseAquiredMessage()
end
local diff = CurrentJob.jobDiff
SetTimeout(math.random(Config.Jobs[CurrentJob.jobDiff].lowTime, Config.Jobs[CurrentJob.jobDiff].highTime) , function()
CurrentJob.caseIsUnlocked = true
if not Config.UseRenewedPhoneGroups then
caseIsUnlockedMessage(diff)
end
TriggerServerEvent('cw-raidjob2:server:tracker', CurrentJob.jobId)
RemoveBlip(policeBlip)
end)
end
comment out this one
QBCore.Functions.Notify(Lang:t("success.caseAquired"), 'success')
--SetTimeout(3000, function()
--RemoveBlip(policeBlip)
end
Might just be a missing timer value in the difficulty?
but it seems resonable to move it there anyway
It seemed somewhat fine but it's possible too, I took the easy way out lol
