Skip to content

Commit

Permalink
feat(server/main.lua): Dependency check and version check
Browse files Browse the repository at this point in the history
  • Loading branch information
iSickos committed Feb 20, 2023
1 parent 4b8ea87 commit 2c93af7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
lib.versionCheck('iSickos/esx_illegal')
if not lib.checkDependency('ox_lib', '0.0.1') then error("You need ox_lib for this resource to work") end
if not lib.checkDependency('ox_target', '0.0.1') then error("You need ox_target for this resource to work") end
if not lib.checkDependency('ox_inventory', '0.0.1') then error("You need ox_inventory for this resource to work") end

if Config.Framework == 'esx' then
ESX = exports['es_extended']:getSharedObject()
end
Expand Down

0 comments on commit 2c93af7

Please sign in to comment.