#Raidjobv2 Timer on Case dose not go away

1 messages · Page 1 of 1 (latest)

grave ivy
#

Hey i have a problem where the timer oh the newerst version on Raidjobv2 dosnt go away and even after 30min nothing happens

#

NVM - Switched to OX version fixed it

#

xD

civic kite
#

The true way

#

🐂

grave ivy
civic kite
#

Using renewed?
No debug logs?

grave ivy
#

No im using JPR`s PhoneSystem

civic kite
#

Do you get other mails?

grave ivy
#

So ichange the First mail and it works but the rest is not sending after opening the case

civic kite
#

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

grave ivy
#

Yes thats Correct

grave ivy
#

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

civic kite
#

In the client side. Remove the call to that event where the error happens

grave ivy
#

Done but still dose not work Sadge

civic kite
#

Errors? Did you read the guide lines and debug yourself?

grave ivy
#

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

grave ivy
civic kite
#

Can't really provide support on others paid scripts. Maybe someone else will drop by with info. good luck

grave ivy
#

Yea ima hop to his support maybe he can help thank tho retrohrt

livid sedge
#

Server.lua

#

Client.lua

livid sedge
#

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

civic kite
#

There was also the issue here where a the getgroups or whatever was called

livid sedge
#

thats the issue im describing

civic kite
#

Ah so an't that just be called and just like wrap that call in an if

livid sedge
#

since they are using a diff phone system obv groups arent integrated

civic kite
#

and emails should work?

livid sedge
#

potentially yeah. but you gotta figure out the jobID shit how i got it setup there

civic kite
#

"you gotta"

#

tsk tsk

#

a aint gotta do nothing PepeLaugh

livid sedge
#

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

civic kite
#

Like just wrapping the reneewd group things in the Config option?

livid sedge
#

Maybe? i dont think i have an standard QB email stuff left in there tbh

civic kite
#

isn't it the same call for email?

livid sedge
#

wait, might be easier..

civic kite
#

There are 4 email calls

livid sedge
#

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

weak spire
#

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
weak spire
#

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
civic kite
#

Might just be a missing timer value in the difficulty?

#

but it seems resonable to move it there anyway

weak spire
#

It seemed somewhat fine but it's possible too, I took the easy way out lol