From 9df29d9d3afcdda9d413ff487c33da21b373c7ea Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 13 Aug 2023 08:57:02 +1000 Subject: [PATCH] fix(init): check if ox_lib is started --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index d72efda..bdf70c4 100644 --- a/init.lua +++ b/init.lua @@ -10,8 +10,8 @@ end local ox_lib = 'ox_lib' local export = exports[ox_lib] -if not GetResourceState(ox_lib):find('start') then - error('^1ox_lib should be started before this resource.^0', 2) +if GetResourceState(ox_lib) ~= 'started' then + error('^1ox_lib must be started before this resource.^0', 0) end local status = export.hasLoaded()