mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
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:
1 parent
b7d3f66a9d
commit
adf219226d
3 files changed
+19
-36
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user