Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix: tablet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanctech committed May 1, 2022
1 parent 634af44 commit 4c4db4c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sonorancad/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ games {'gta5'}

author 'Sonoran CAD'
description 'Sonoran CAD FiveM Integration'
version '2.9.7'
version '2.9.8'

server_scripts {
'core/http.js'
Expand Down
6 changes: 3 additions & 3 deletions sonorancad/tools/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

$ReleaseVersion = Read-Host "Enter version to create"

$ResourcePath = $PSScriptRoot + "\[sonorancad]"
$ResourcePath = "G:\git\sonoranplugins\server\resources\[sonorancad]"
$WorkPath = $PSScriptRoot + "\release\[sonorancad]"

Write-Host $ResourcePath
Write-Host $WorkPath

Robocopy.exe $ResourcePath $WorkPath /s /MIR /XD plugins .git .vscode /XF config.json config_*.lua .gitignore config.js config.lua
Robocopy.exe $ResourcePath $WorkPath /s /MIR /XD plugins .git .vscode /XF config.json config_*.lua .gitignore config.js config.lua *.ydr *.ytyp
New-Item -ItemType Directory "$WorkPath\sonorancad\plugins" -ErrorAction Ignore
Robocopy.exe "$ResourcePath\sonorancad\plugins\template" "$WorkPath\sonorancad\plugins\template" /s

Expand All @@ -24,4 +24,4 @@ if (-not (Test-Path -Path $7zipPath -PathType Leaf)) {

Set-Alias 7zip $7zipPath

7zip a -mx=9 "$PSScriptRoot\sonorancad-$ReleaseVersion.zip" $WorkPath
7zip a -mx=9 "$PSScriptRoot\sonorancad-$ReleaseVersion.zip" $WorkPath
4 changes: 2 additions & 2 deletions sonorancad/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"resource" : "2.9.7",
"testedFxServerVersion": "5208"
"resource" : "2.9.8",
"testedFxServerVersion": "5511"
}
2 changes: 1 addition & 1 deletion tablet/html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function refreshCall() {
$("#callNotes")[0].innerHTML += '<span class="callnote">' + currentCall.notes[i] + '</span>';
}
}
if (currentCall.units.length > 0) {
if (currentCall.units != undefined && currentCall.units.length > 0) {
$("#callUnits")[0].innerHTML = '';
for (var i = 0; i<currentCall.units.length; i++) {
//console.log(currentCall.units[i].status);
Expand Down

0 comments on commit 4c4db4c

Please sign in to comment.