mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
other canInteract crap for target
This commit is contained in:
1 parent
adf219226d
commit
16da566b13
2 files changed
+2
-5
No files matched your search
@@ -7,9 +7,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',
|
||||
@@ -17,7 +14,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 not IsEntityDead(entity)
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ local options = {
|
||||
icon = 'fa-solid fa-road',
|
||||
label = 'Option 2',
|
||||
canInteract = function(entity, distance, coords, name, bone)
|
||||
return entity and not IsEntityDead(entity)
|
||||
return not IsEntityDead(entity)
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user