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 } }