Skip to content

Commit

Permalink
feat(server/main): check that one sync infinity is running on server …
Browse files Browse the repository at this point in the history
…startup
  • Loading branch information
Manason committed Sep 10, 2024
1 parent 88abaa5 commit fd4dd18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ elseif not lib.checkDependency('ox_inventory', '2.42.1', true) then
startupErrors, errorMessage = true, 'ox_inventory version 2.42.1 or higher is required'
elseif GetConvar('inventory:framework', '') ~= 'qbx' then
startupErrors, errorMessage = true, 'inventory:framework must be set to "qbx" in order to use qbx_core'
elseif GetConvarInt('onesync_enableInfinity', 0) ~= 1 then
startupErrors, errorMessage = true, 'OneSync Infinity is not enabled. Do so via txAdmin settings.'
end
if startupErrors then
lib.print.error('Startup errors detected, shutting down server...')
Expand Down

0 comments on commit fd4dd18

Please sign in to comment.