Skip to content

Commit

Permalink
refactor(client/debug): remove canInteract from options
Browse files Browse the repository at this point in the history
It was just there to show "hey you can use a function to hide your option";
unfortunately people take it at face value and assume it's necessary.
  • Loading branch information
thelindat committed Oct 26, 2022
1 parent fcc215a commit d1a1bfa
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions client/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ ox_target:addBoxZone({
event = 'ox_target:debug',
icon = 'fa-solid fa-cube',
label = '(Debug) Box',
canInteract = function(entity, coords, distance)
return true
end
}
}
})
Expand All @@ -38,9 +35,6 @@ ox_target:addSphereZone({
event = 'ox_target:debug',
icon = 'fa-solid fa-circle',
label = '(Debug) Sphere',
canInteract = function(entity, coords, distance)
return true
end
}
}
})
Expand All @@ -51,9 +45,6 @@ ox_target:addModel(`police`, {
event = 'ox_target:debug',
icon = 'fa-solid fa-handcuffs',
label = 'Police car',
canInteract = function(entity, coords, distance)
return true
end
}
})

Expand All @@ -63,9 +54,6 @@ ox_target:addGlobalPed({
event = 'ox_target:debug',
icon = 'fa-solid fa-male',
label = '(Debug) Ped',
canInteract = function(entity, coords, distance)
return true
end
}
})

Expand All @@ -75,9 +63,6 @@ ox_target:addGlobalVehicle({
event = 'ox_target:debug',
icon = 'fa-solid fa-car',
label = '(Debug) Vehicle',
canInteract = function(entity, coords, distance)
return true
end
}
})

Expand All @@ -87,8 +72,5 @@ ox_target:addGlobalObject({
event = 'ox_target:debug',
icon = 'fa-solid fa-bong',
label = '(Debug) Object',
canInteract = function(entity, coords, distance)
return true
end
}
})

0 comments on commit d1a1bfa

Please sign in to comment.