update ox_target option properties

also remove the canInteract sample code because people copy-paste it like the braindead apes they are without any understanding of what it's actually doing
This commit is contained in:
Linden committed 2023-02-08 20:13:48 +11:00
1 parent b7d3f66a9d
commit adf219226d
3 files changed
+19 -36

No files matched your search

+1 -4
View File
@@ -5,9 +5,6 @@ local options = {
event = 'ox_target:debug',
icon = 'fa-solid fa-road',
label = 'Option 1',
canInteract = function(entity, distance, coords, name, bone)
return math.random(0, 100) < 51
end
},
{
name = 'ox:option2',
@@ -15,7 +12,7 @@ local options = {
icon = 'fa-solid fa-road',
label = 'Option 2',
canInteract = function(entity, distance, coords, name, bone)
return math.random(0, 100) < 51
return entity and not IsEntityDead(entity)
end
}
}