From fb23c1d5aecf33c93328af168148f314f1ad1ee1 Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Thu, 31 Aug 2023 08:49:25 +0200 Subject: [PATCH] chore(release): 0.11.1 --- CHANGELOG.md | 4 ++++ integrations/alpr/fxmanifest.lua | 2 +- integrations/call911/fxmanifest.lua | 2 +- integrations/calltaxi/fxmanifest.lua | 2 +- integrations/calltow/fxmanifest.lua | 2 +- integrations/postals/fxmanifest.lua | 2 +- integrations/sync/client/client.ts | 11 +++++++++++ integrations/sync/fxmanifest.lua | 2 +- package.json | 2 +- 9 files changed, 22 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8aa2a43..9dc5070 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.11.1 + +- chore: add warning when API URL is not available client-side. + ## 0.11.0 - refactor: rewrite NUI to use React diff --git a/integrations/alpr/fxmanifest.lua b/integrations/alpr/fxmanifest.lua index c9dabd3..ff73dc4 100644 --- a/integrations/alpr/fxmanifest.lua +++ b/integrations/alpr/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Casper Iversen" description "ALPR integration with support for Wraith ARS 2X" -version "0.11.0" +version "0.11.1" server_scripts {"server/server.js"} client_scripts {"client/client.js"} diff --git a/integrations/call911/fxmanifest.lua b/integrations/call911/fxmanifest.lua index b1bad17..715bd4c 100644 --- a/integrations/call911/fxmanifest.lua +++ b/integrations/call911/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Casper Iversen" description "/call911 command that connects to SnailyCADv4" -version "0.11.0" +version "0.11.1" server_scripts {"server/server.js"} client_scripts {"client/client.js"} diff --git a/integrations/calltaxi/fxmanifest.lua b/integrations/calltaxi/fxmanifest.lua index e263c7f..8f4aa1a 100644 --- a/integrations/calltaxi/fxmanifest.lua +++ b/integrations/calltaxi/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Casper Iversen" description "/calltaxi command that connects to SnailyCADv4" -version "0.11.0" +version "0.11.1" server_scripts {"server/server.js"} client_scripts {"client/client.js"} diff --git a/integrations/calltow/fxmanifest.lua b/integrations/calltow/fxmanifest.lua index 6ff1d96..f0dcd3f 100644 --- a/integrations/calltow/fxmanifest.lua +++ b/integrations/calltow/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Casper Iversen" description "/calltow command that connects to SnailyCADv4" -version "0.11.0" +version "0.11.1" server_scripts {"server/server.js"} client_scripts {"client/client.js"} diff --git a/integrations/postals/fxmanifest.lua b/integrations/postals/fxmanifest.lua index 0a25a9d..9f9cbe3 100644 --- a/integrations/postals/fxmanifest.lua +++ b/integrations/postals/fxmanifest.lua @@ -3,5 +3,5 @@ game "gta5" author "Casper Iversen" description "This allow you to define custom postals" -version "0.11.0" +version "0.11.1" diff --git a/integrations/sync/client/client.ts b/integrations/sync/client/client.ts index 9b5c79b..a48dbbc 100644 --- a/integrations/sync/client/client.ts +++ b/integrations/sync/client/client.ts @@ -6,6 +6,17 @@ import "./flows/traffic-stop"; const API_URL = GetConvar("snailycad_url", "null"); +if (API_URL === "null") { + console.error(` + --------------------------------------- + +[${GetCurrentResourceName()}] Failed to find the "snailycad_url" convar in your server.cfg. Please make sure you are using \`setr\` and not \`set\`: + +\`setr snailycad_url "/v1" \` + + ---------------------------------------`); +} + emit( "chat:addSuggestion", `/${SnCommands.PanicButton}`, diff --git a/integrations/sync/fxmanifest.lua b/integrations/sync/fxmanifest.lua index 527087a..befd69b 100644 --- a/integrations/sync/fxmanifest.lua +++ b/integrations/sync/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Casper Iversen" description "Sync SnailyCAD with FiveM." -version "0.11.0" +version "0.11.1" ui_page "nui/index.html" diff --git a/package.json b/package.json index 5ec2a6a..ef3f666 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@snailycad/fivem-integrations", - "version": "0.11.0", + "version": "0.11.1", "author": { "name": "Casper Iversen", "url": "https://casperiv.dev"