does anyone know how to get it to work with legacy fuel?
So how do i add a specific Bone target ? I’m trying to make it open the trunk
Someone made an edit with the use of bones. Here’s the link to the code
Thanks Nag, i’ll try it out, hope i won’t break my hands into this because i’m still learning things.
What’s the name of that tool ?
Devtools - Press F2 to see what’s on those screenshots
any help?i tried to use this
Citizen.CreateThread(function()
AddBoxZone("PoliceDuty", vector3(443.95, -979.63, 30.69), 0.4, 0.6, {
name="PoliceDuty",
heading=91,
debugPoly=false,
minZ=30.79,
maxZ=30.99
}, {
options = {
{
event = "police:toggleduty",
icon = "far fa-clipboard",
label = "Mulai Shift",
},
{
event = "police:toggleduty",
icon = "far fa-clipboard",
label = "Hentikan Shift",
},
},
job = {"police"},
distance = 1.5
})
end)
well i fixed it just by adding export[‘bt-target’]: to AddBoxZone(“PoliceDuty”, vector3(443.95, -979.63, 30.69), 0.4, 0.6, {
where exactly do i put the code?
Let’s say i want to make an on/off duty button for the PD.
Where do i put the example code?
That is in client that i modify.
and all the others i have in there files or in the config.lua
did you manage to find a solution?
since he didnt provide his code and just says “i think i did it correctly” we cant really look into if he made mistakes or not.
if you are willing to share your code i’d take a look.
I have a version of esx_sit that works with bt-target
how to get up from a chair?
Can anyone tell me why is this not workign?
AddBoxZone("PoliceDuty", vector3(441.79, -982.07, 30.69), 0.4, 0.6, {
name="PoliceDuty",
heading=91,
debugPoly=false,
minZ=30.79,
maxZ=30.99
}, {
options = {
{
event = "ClockIn",
icon = "far fa-clipboard",
label = "Sign On/Off Duty",
job = {"police"},
},
},
distance = 1.5
})
Great script!
Is it possible to make it trigger when its on a target(specific ped) inside a ‘BoxZone’?
If it does, i would love to get some help, i’ve been trying with diffrent ways but havent figured it out yet.
how can i replace for vrp?
It literally supports peds, check the official github example.
i know, but the peds spawns around the whole map, i want it to target specific ped in specific area.
I’ve used “AddTargetModel” for alot of my scripts, so i know how to targets peds…
Well use EasyPedCreator you spawn that specific ped in where ever you want.
I know how to spawn peds…
I wondered if you can use Bt-target to target specific ped in specific are (Coords + radius), wich would be a combination of ‘AddTargetModel’ & ‘AddBoxZone’. But i’ve tried, doesnt seem to work