how do I make it work with a target on another player?
‘mp_m_freemode_01’,
‘mp_f_freemode_01’
not work
Please try using
GetHashKey('mp_m_freemode_01')
GetHashKey('mp_f_freemode_01')
I use this on bt-target and it works properly. I am looking to move onto qtarget after reviewing the progression of the project for another month.
how do i use qtarget with a ped say like to make drugs or buy the base
Update: There is a QB version called QB-Target
How do I change the button of bt-target
parameter job is not working
How can i solve this ? 4.05 ms and if i leave it like that it goes to 7ms , if i restart it goes to 0.1ms, I added > restart qtarget in my cfg but i doesn’t work, i have to do it manually everytime i join the server. Thanks.
I have a some props I made in 3dsmax. Is it possible to use exports inside script to create different Box Zones from the offset of the prop model?
How do I add it to qtarget:
local playerPed = PlayerPedId()
local coords = GetEntityCoords(PlayerPedId())
local boiler = GetClosestObjectOfType(coords.x, coords.y, coords.z, 5.0, GetHashKey(“dubb_prop_methboiler”), false, false, false)
local offsetCoords = GetOffsetFromEntityInWorldCoords(boiler, 0.0, 0.0, 0.0)
Edit: exports[‘qtarget’]:AddBoxZone(“BoilerLeft”, vector3(offsetCoords.x, offsetCoords.y, offsetCoords.z), 1.0, 1.0, {
This worked. Disregard
hey guys ^^ i search to do like the video → interract with players for heal / rob / uncuff etc… but if i revive it revive me only and not the target… same for all command… can you help me plz ?
Citizen.CreateThread(function()
exports.qtarget:Player({
options = {
{
event = “AmbulanceAction:OpenMenu”,
icon = “fas fa-stethoscope”,
label = “Ambulance Actions”,
job = “ambulance”,
},
},
distance = 2.5
})
end)
RegisterNetEvent(‘AmbulanceAction:OpenMenu’, function()
TriggerEvent(‘nh-context:sendMenu’, {
{
id = 1,
header = “ Ambulance”,
txt = “”
},
{
id = 2,
header = “ Interaction Citoyen”,
txt = “”,
params = {
event = “AmbulanceAction:Citoyen”,
}
},
})
end)
RegisterNetEvent(‘AmbulanceAction:Citoyen’, function()
TriggerEvent(‘nh-context:sendMenu’, {
{
id = 1,
header = “ Retour”,
txt = “”,
params = {
event = “AmbulanceAction:OpenMenu”,
}
},
{
id = 2,
header = "Réanimer",
txt = "",
params = {
event = "esx_ambulancejob:revive2",
}
},
{
id = 3,
header = "Soigner",
txt = "",
params = {
event = "esx_ambulancejob:heal",
}
},
})
end)
You need to trigger events on the server if you want tell another client to get healed, revive, etc.
@Noms Please update install instructions.
I’ve created issue about this: Installation page is missing · Issue #59 · overextended/qtarget · GitHub
Download resource.
Place resource in folder.
You have now completed the installation.
HI!
Is there somewhere we can fix so it looks like this when you using the eye ? so you can see where the poly are!
Or is that for polyzone only ?
Does qtarget have a “redm” version ?
Hello! I currently have a issue that when I get close to the new casino the target stops working. But then when I go away from the casino it works again. Do guys have an idea of what it could be?
job = “ambulance” dont work everyone can open
Hi. I trying make target to ATM’s (objects) and npc but it doesn’t work. Target doesn’t showing me option to click.
bones.lua (2.9 KB)
Citizen.CreateThread(function()
local Atm = {-870868698,-1126237515,-1364697528,506770882}
exports.qtarget:AddTargetModel(Atm, {
options = {
{
type = "client",
event = "okokBanking:openUi",
icon = "fab fa-cc-visa",
label = " Операции с картой",
},
},
job = {"all"},
distance = 2.9
})
end)
ive tried several times to get this working with making my police and ems go on and off duty but it wont do anything. the eye will not give me an option or anything.
Hey could someone help me?
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_society:openBossMenu",
icon = "fas fa-sign-in-alt",
label = "Direktorius",
job = "police",
},
},
distance = 3.5
})
So Im trying to make qtarget for boss menu for police. when I press on it
I get error in my Live console
[ script:esx_society] esx_society: [MY LICENSE] attempted open a society boss menu!
Any help would be appreciated