Puntzi
March 14, 2022, 4:39pm
111
Try this
exports.qtarget:AddBoxZone(“lspddirektorius”, vector3(462.13, -986.26, 30.9), 0.30, 0.30, {
name="lspddirektorius",
heading=11.0,
debugPoly=true,
minZ=30.6,
maxZ=31.3,
}, {
options = {
{
event = "esx_policejob:bossMenu",
icon = "fas fa-sign-in-alt",
label = "Direktorius",
job = "police",
},
},
distance = 3.5
})
AddEventHandler('esx_policejob:bossMenu', function()
TriggerEvent('esx_society:openBossMenu', 'police', function(data, menu)
end, {wash = false})
end)
2 Likes
FurmaZ
March 14, 2022, 5:36pm
112
it worked haha Thank you sir
Anyone have an idea? of what it could be.
hey guys does anyone know how to make it so you can interact with things e.g i have a police garage and i need the mouse to show up but it doesnt let me
Candy = function()
local options = {
{name = "buy_Paprika",label = "Phat Chips - Paprika"},{name = "buy_Cheese",label = "Phat Chips - Big Cheese"},{name = "buy_Habanero",label = "Phat Chips - Habanero"},{name = "buy_StickyRibs",label = "Phat Chips - Sticky Ribs"},
{name = "buy_ZebraBar",label = "Buy Zebra Bar"},{name = "buy_Meteorite",label = "Buy Meteorite Bar"},{name = "buy_Nothings",label = "Buy Nothings"},{name = "buy_CaptainsLog",label = "Buy Captains Log"}
}
exports["qtarget"]:AddTargetModel({name = "candyMachine",label = "Vending Machine",icon = "fas-fa-candy-cane",model = -654402915,interactDist = 5.0,onInteract = onInteract,options = options})
end,
this is not working can some one help
1 Like
Hi I have recently switched from bt-target to qtarget and I am having an issue previously I had 3-4 options for some targeted location after switching it only allows me to have 2 options am I doing something wrong or is this a limitation.
Puntzi
April 25, 2022, 5:12pm
119
In init.lua u have a Config.DrawSprite just put it on true
Upgraded to this from bt-target, love the additional features and optimizations.
WOMIK
May 4, 2022, 7:00pm
122
Can someone help, the first event works normally and the second one does not?
Puntzi
May 6, 2022, 1:38pm
123
Try to put a Wait(250) and the beggining of the event
1 Like
iakos
May 7, 2022, 10:16pm
124
Hello How to write to the ox inventory so that you can pass items using qtarget?
does this work standalone?
Last question does it replace interaction menus purposes? And a way to perm things like police side?
How can i add new target’s , where can i get a file name ?
What are all the exports for qtarget i cant seem to find them to implement into my custom framework
does this work with esx 1.2?