Skip to content

Commit

Permalink
Merge pull request #6 from TonybynMp4/versionCheck
Browse files Browse the repository at this point in the history
Add version Check
  • Loading branch information
TonybynMp4 authored Oct 13, 2023
2 parents b6e0b18 + 986a5e4 commit 714a9cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Config = {}

Config.versionCheck = true -- Get notified when a new version is available on GitHub

Config.OnlyOnDuty = true -- Only display calls when on duty

Config.DispatchJobs = { -- Jobs that uses the dispatch system
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ game 'gta5'

author 'Tonybyn_Mp4'
description 'Dispatch resource for the Qbox framework'
version '1.1.0'
version '1.2.1'

shared_scripts {
"@qbx_core/import.lua",
Expand Down
4 changes: 4 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
local calls = {}

if Config.versionCheck then
lib.versionCheck('TonybynMp4/qbx_dispatch')
end

RegisterServerEvent("qbx-dispatch:server:AddCall", function(info)
local data = not info.TenCode and info or info.data
data.time = os.time() * 1000
Expand Down

0 comments on commit 714a9cc

Please sign in to comment.