Need help with qb-target

Hello.

I have a problem with a fishing script.

Basically the scipt starts with server reset but i cannot use qb-target until i reset the script.

is there anyone who can help me out because i cant figure this out.

exports[Config.targetExport]:AddTargetModel(s_m_y_ammucity_01, {
options = {
{
event = “doj:client:BoatMenu”,
icon = “fas fa-anchor”,
label = “Boat Rental”,
location = 1 --LaPuerta
},
{
event = “doj:client:buyFishingGear”,
icon = “fas fa-fish”,
label = “Fishing Gear”,
},
},
distance = 10.0
})

Paste it in fxmanifest

dependencies {
    'qb-core',
    'PolyZone',
    'qb-target',
    'qb-menu'
}

Still not working. ChatGPT told me that this: GitHub - dojwun/doj-fishing: edited version of esx_AdvancedFishing for QBCore Framework : Is using old version of qb-target. So I tried to convert it but it doesn’t work or I’m doing do something wrong. can anybody look what’s wrong in the fishing script and help me configure it to use the new qb-target system?

I think you need apostrophes

Go to qb-target and then look for EXAMPLES.Md.

You will see exactly how to use the exports.

exports['qb-target']:AddTargetModel

I already did that. Didn’t work.

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