Maybe a child menu option?
Other then that, great release.
Maybe a child menu option?
Other then that, great release.
local Bones = {}
Fixed, sorry about that.
I have an problem i canât trigger event and I donât really know what i did wrong
here some pics
Ty for help
It would be interesting if it was possible to show/hide an option depending on a condition. Example:
When i go near an ATM it show 2 options:
btw, Good job!
Its actually easy. Are you using vRP or ESX?
Iâm using ESX
Are the jobs supposed to look like this? Also is there a way to disable jobs?
Config.NonEsxJob = function()
local PlayerJob =
{
name = all
name = blank
name = police
}
return PlayerJob
end
you have convert this to qbcore ?
Hello, I have a problem that when I look at the car everything works, but when I take my eye out of the car it disappears and doesnât work anymore (doesnât appear)
Anyone know how to make it do commands? (/e mechanic, /duty)
Not sure how Iâd fill in the âRegisterNetEvent(âeventâ), AddEventHandler(âeventâ, function(), and TriggerServerEvent()â
this is the only one I got working. The others had a problem with âTriggerClientEventâ
local basketball = {
1840863642,
}
AddTargetModel(basketball, {
options = {
{
event = âbasketDelâ,
icon = âfas fa-basketball-ballâ,
label = âStore Ballâ,
},
},
job = {âallâ},
distance = 2.5
})RegisterNetEvent(âbasketDelâ)
AddEventHandler(âbasketDelâ, function()
local closestEntity, closestEntityDistance = GetClosestObjectOfType(GetEntityCoords(PlayerPedId()), 1.5, GetHashKey(âprop_bskball_01â), false, false, false)
local closestEntityDistance = #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(closestEntity))
if GetEntityModel(closestEntity) == GetHashKey(âprop_bskball_01â) and closestEntityDistance <= 1.5 then
DeleteBasketball(closestEntity)
end
end)function DeleteBasketball(entity)
DeleteEntity(entity)
basketball = entity
tasks = {}
end
How do you do this??? Please i really wanna get this working in my server ill literally pay anyone that can help me.
dm me on discord Nag-Dudes©#8958
+rep to the devs, got everything to work nicely. the script is amazing
Is there a way to make selection options within the menu that comes up be job specific vs just generalizing the polyzone as a whole to be job specific. See example below. Essentially i dont want customers to see the billing option at a business and only want them to see the pay option.
AddBoxZone(âBurgershotTerm1â, vector3(-1196.0, -891.32, 14.0), 0.4, 0.5, {
name="BurgershotTerm1",
heading=34,
--debugPoly=true,
minZ=13.9,
maxZ=14.45
}, {
options = {
{
event = "dc-burgershot:client:open:register",
icon = "fas fa-cash-register",
label = "Charge Customer",
job = "burgershop", ------ << Likethis
},
{
event = "dc-burgershot:client:open:payment",
icon = "fas fa-money-check-alt",
label = "Pay For Order",
job = "all", ------ << Likethis
},
},
-- job = {"burgershop"}, ------ << instead of this which generalizes all the options.
distance = 2.0
Maybe what you could do is make a copy of it but give it a different job. So customers see one thing, the business owner sees another yk. Not sure if that is how it works, but it sounds reasonable in my head.
same, anyone got a fix?