GithubHelp home page GithubHelp logo

attempt to call a nil value? about qb-target HOT 5 CLOSED

vsyyyy avatar vsyyyy commented on July 17, 2024
attempt to call a nil value?

from qb-target.

Comments (5)

vsyyyy avatar vsyyyy commented on July 17, 2024

the only thing that I added to the qb-target/config was -

Config.CircleZones = {

-- Lucky wheel
exports['qb-target']:AddCircleZone("LuckyWheel", vector3(949.391, 44.72, 71.638), 2.0, {
name="LuckyWheel",
heading=160,
debugPoly=false,
useZ=true,
}, {
options = {
{
event = "luckywheel:client:startWheel",
icon = "fas fa-sync-alt",
label = "Try Your Luck",
},
},
distance = 2.0
}

-- Horse Bets
exports['qb-target']:AddCircleZone("Betting", vector3(956.121,70.185,70.433), 1.0, {
name="Betting",
heading=160,
debugPoly=false,
useZ=true,
}, {
options = {
{
event = "QBCore:client:openInsideTrack",
icon = "fas fa-coins",
label = "Start Betting",
},
},
distance = 3.0
}
}

Config.BoxZones = {

}

Config.PolyZones = {

}

Config.TargetBones = {

}

Config.TargetEntities = {

}

Config.TargetModels = {
-- Casino Shop
exports['qb-target']:AddTargetModel(U_F_M_CasinoCash_01, {
options = {
{
event = "doj:casinoChipMenu", --NotUsed
icon = "fas fa-exchange-alt",
label = "Exchange Casino Chips",
},
{
event = "qb-casino:client:openCasinoChips", --NotUsed
icon = "fas fa-coins",
label = "Purchase Casino Chips",
},
{
event = "qb-casino:client:openCasinoMembersips",
icon = "fas fa-id-card",
label = "Purchase Casino Memberships",
},
},
distance = 3.0
}
}

from qb-target.

BerkieBb avatar BerkieBb commented on July 17, 2024

Can you put that config in a codeblock so it keeps the spaces aligned, then I can identify your problem much easier

from qb-target.

Pitzo avatar Pitzo commented on July 17, 2024

I just downloaded qb-target just after installing the new qb-core and oxmysql- I start it and get this error?

image

exports.txt

You must place this inside of a client-side file. I've attached a file that should work with what you're trying to achieve. Just rename it to exports.lua and stick it in your resource client folder.

from qb-target.

BerkieBb avatar BerkieBb commented on July 17, 2024

No, I made config tables for a reason

from qb-target.

BerkieBb avatar BerkieBb commented on July 17, 2024

He just messed up some stuff in the config

from qb-target.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.