qbcore-framework / qb-target

A better interaction system for FiveM
GNU General Public License v3.0
94 stars 240 forks source link

[BUG] error loading into server after an update to target #113

Closed JYNKZIE closed 2 years ago

JYNKZIE commented 2 years ago

Describe the bug script error upon loading into the server after a restart

To Reproduce Steps to reproduce the behavior: -update qb-target -load into server after it starts up

Expected behavior cannot use atms nor shops, no shops seem to work

Screenshots image

BerkieBb commented 2 years ago

This seems like you have a wrong format for the function on that line, you could show me what's on that line?

JYNKZIE commented 2 years ago
exports("RemoveZone", RemoveZone)

local function SetOptions(tbl, distance, options)
    for _, v in pairs(options) do
        if v.required_item then
            v.item = v.required_item
            v.required_item = nil
        end
        if not v.distance or v.distance > distance then v.distance = distance end
        tbl[v.label] = v
    end
end

443 would be tbl[v.label] = v

image

BerkieBb commented 2 years ago

That could be from a few options, can you make sure all of your target options have a label property set?

JYNKZIE commented 2 years ago

within init, everything has a label set. not sure what my issue is xD i appreciate you !

BerkieBb commented 2 years ago

Is this still an issue?

JYNKZIE commented 2 years ago

No I fixed it by redoing the entire list and updated the script. Thank you 🙏

On Apr 10, 2022, at 3:11 PM, BerkieBb @.***> wrote:

 Is this still an issue?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.