Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Not Loading #1

Open
BlackDahlia313 opened this issue Aug 19, 2021 · 7 comments
Open

Not Loading #1

BlackDahlia313 opened this issue Aug 19, 2021 · 7 comments

Comments

@BlackDahlia313
Copy link

BlackDahlia313 commented Aug 19, 2021

Installed bt-target and its dependency.

Loaded up the resource and added the target to the config.lua for bt-target.

Not seeing anything load.

@Nathan-FiveM
Copy link
Owner

Did you rename it? Checked the js etc? Please provide the code error etc

@Dabcity
Copy link

Dabcity commented Aug 24, 2022

No errors here, but will not show anything when trigger event {event = "qb_ruletka:start"} or {event = "qb-roulette:start"}

@Eviltjuuh
Copy link

i just use qb-target

when i add in init.lua the lines

AddBoxZone("CasinoRoulette", vector3(1138.62, 252.75, -51.04), 1.5, 2.5, {
	name = "CasinoRoulette",
	heading = 260.67,
	debugPoly = false,
	minZ = -52.04,
	maxZ = -50.75
}, {
    options = {
        {
            event = "qb_ruletka:start",
            icon = "fas fa-coins",
            label = "Play Roulette",
        },
    },
    distance = 1.5
})

in config.boxzones = {
i get a target error when reload target script

@ItsMeghanK
Copy link

i just use qb-target

when i add in init.lua the lines

AddBoxZone("CasinoRoulette", vector3(1138.62, 252.75, -51.04), 1.5, 2.5, {
	name = "CasinoRoulette",
	heading = 260.67,
	debugPoly = false,
	minZ = -52.04,
	maxZ = -50.75
}, {
    options = {
        {
            event = "qb_ruletka:start",
            icon = "fas fa-coins",
            label = "Play Roulette",
        },
    },
    distance = 1.5
})

in config.boxzones = { i get a target error when reload target script

did you get this working?

@xhackax47
Copy link

There is errors in the manifest, he dont target the correct files for client ("client/main.lua" instead of correct "client.lua") and same for the server file ("server/main.lua" instead of correct "server.lua"), change the manifest or rename the files and put them in folders client and server with the same in fxmanifest.lua

@ItsMeghanK
Copy link

I did this, but it still doesn't work. I use qb-target. Is there anything else you changed? > There is errors in the manifest, he dont target the correct files for client ("client/main.lua" instead of correct "client.lua") and same for the server file ("server/main.lua" instead of correct "server.lua"), change the manifest or rename the files and put them in folders client and server with the same in fxmanifest.lua

@xhackax47
Copy link

xhackax47 commented Nov 4, 2022

I dont use the init method explained in the README for the targets, i just use the exports and the latest version of qb-target, a bit modified by me
Ive created a file named target.lua and in the target.lua ive made a CreateThread function with all the target exports for each prop roulette.

Exemple for "ch_prop_casino_roulette_01a" prop in target.lua :

CreateThread(function()
	exports['qb-target']:AddTargetModel("ch_prop_casino_roulette_01a", {
        options = {
            {
                type = "client",
                event = "qb-roulette:start",
                icon = "fas fa-redo",
                label = "Jouer à la Roulette",
            },
        },
        distance = 2.0
    })
end)

You have to make this for each prop or make a loop with list of prop and iterate and dont forget to add the target.lua file in your fxmanifest

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants