mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +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',
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user