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
…start
  • Loading branch information
Manason authored Sep 10, 2024
1 parent 88abaa5 commit 3e36e28
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. You can do so in txAdmin settings or add +set onesync on to your server startup command line'
end
if startupErrors then
lib.print.error('Startup errors detected, shutting down server...')
Expand Down

0 comments on commit 3e36e28

Please sign in to comment.