From 16da566b135afde2b01228f62f86130e7f6e3402 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 8 Feb 2023 20:22:32 +1100 Subject: [PATCH] other canInteract crap for target --- docs/ox_target/Usage/Globals.md | 5 +---- docs/ox_target/Usage/Target.md | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/ox_target/Usage/Globals.md b/docs/ox_target/Usage/Globals.md index 26e0a25b..0e871fe0 100644 --- a/docs/ox_target/Usage/Globals.md +++ b/docs/ox_target/Usage/Globals.md @@ -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 } } diff --git a/docs/ox_target/Usage/Target.md b/docs/ox_target/Usage/Target.md index f77168da..7071a97a 100644 --- a/docs/ox_target/Usage/Target.md +++ b/docs/ox_target/Usage/Target.md @@ -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 } }