mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(init): check if ox_lib is started
This commit is contained in:
4
init.lua
4
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()
|
||||
|
||||
Reference in New Issue
Block a user