Manual script restart needed for it to work

Hi,
I’m using qb-garages and for it to work, I must restart the script manually after a server restart.
Before I do that, I get this error:

Here is my server.cfg:

ensure qb-core
ensure forge-charcreator
ensure forge-multicharacter
ensure PolyZone
ensure qb-target
ensure qb-garages
ensure [standalone]
ensure [defaultmaps]
ensure [qb]
ensure [voice]
ensure [finalrpg]

I really don’t understand what the issue is. I hope you can help me.

Can you provide the code where the error occurs?

I solved it.
For some reason, the zones creation was messed up when playerloaded.
So I added DeleteZones() before CreateZones() in the client main.lua and it did the trick.

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
    DeleteZones()
    CreateZones()
end)
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.