mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
ox_target: canInteract params
This commit is contained in:
1 parent
07256a74a0
commit
341bc32925
4 files changed
+7
-7
No files matched your search
@@ -5,7 +5,7 @@ local options = {
|
||||
event = 'ox_target:debug',
|
||||
icon = 'fa-solid fa-road',
|
||||
label = 'Option 1',
|
||||
canInteract = function(entity, coords, distance)
|
||||
canInteract = function(entity, distance, coords, name, bone)
|
||||
return math.random(0, 100) < 51
|
||||
end
|
||||
},
|
||||
@@ -14,7 +14,7 @@ local options = {
|
||||
event = 'ox_target:debug',
|
||||
icon = 'fa-solid fa-road',
|
||||
label = 'Option 2',
|
||||
canInteract = function(entity, coords, distance)
|
||||
canInteract = function(entity, distance, coords, name, bone)
|
||||
return math.random(0, 100) < 51
|
||||
end
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user