Vihtal
June 24, 2023, 9:22pm
1
so i been trying to get some of my scripts to work with ox target instead of 3d text or markers etc, ive added the export and can get the eye to pop up where i want it etc but cant get it to trigger the events. i seen a video where a dude explains it and copy/paste the event name to the export and works fine but none of my scripts have an “event name” like his can anyone help or give some examples on how to use?
Example Export:
exports.ox_target:addBoxZone({
coords = vec3(240.9799, -1379.0468, 33.7417),
size = vec3(2, 2, 2),
rotation = 45,
debug = drawZones,
drawSprite = true,
options = {
{
name = ‘dmvschool’,
event = ‘DMVSchool’,
icon = ‘fa-solid fa-cube’,
label = ‘Køreskole’,
}
}
})
Vihtal:
so i been trying to get some of my scripts to work with ox target instead of 3d text or markers etc, ive added the export and can get the eye to pop up where i want it etc but cant get it to trigger the events. i seen a video where a dude explains it and copy/paste the event name to the export and works fine but none of my scripts have an “event name” like his can anyone help or give some examples on how to use?
coba pakai ini semoga berhasil
exports[‘qtarget’]:AddBoxZone(“isinama”, vector3(-138.48, -632.93, 168.82), 1, 1, {
name=“isinama”,
heading=,
debugPoly=false,
minZ=,
maxZ=,
}, {
options = {
{
event = “OpenDMVSchoolMenu”,
icon = “fas fa-briefcase”,
label = “open dmv”,
},
},
distance = 1.5
})
AddEventHandler(‘OpenDMVSchoolMenu’,function()
print(“aku Berhasil Membuka”)
OpenDMVSchoolMenu()
end)
have you tried it? i believe qtargtet function works also for ox target
ncrp.cz
September 4, 2023, 11:44am
5
how to make for multiple coords?