other canInteract crap for target

This commit is contained in:
Linden committed 2023-02-08 20:22:32 +11:00
1 parent adf219226d
commit 16da566b13
2 files changed
+2 -5

No files matched your search

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