diff --git a/apps/game/client/sounds/client-sound.class.ts b/apps/game/client/sounds/client-sound.class.ts index 8a9180b77..fb163a1b5 100644 --- a/apps/game/client/sounds/client-sound.class.ts +++ b/apps/game/client/sounds/client-sound.class.ts @@ -26,4 +26,4 @@ export class Sound { ReleaseSoundId(this._soundId); if (SoundIdsByName[this._soundName]) delete SoundIdsByName[this._soundName]; } -} +} \ No newline at end of file diff --git a/apps/game/server/bridge/esx/esx-server.ts b/apps/game/server/bridge/esx/esx-server.ts index 1252e90c9..db61085e4 100644 --- a/apps/game/server/bridge/esx/esx-server.ts +++ b/apps/game/server/bridge/esx/esx-server.ts @@ -33,6 +33,8 @@ export class ESXFramework implements Strategy { on("esx:playerLogout", async () => { await PlayerService.handleUnloadPlayerEvent(global.source); }) + + mainLogger.info('ESX bridge initialized'); } onStart(): void { diff --git a/apps/game/server/bridge/qb/qbcore-server.ts b/apps/game/server/bridge/qb/qbcore-server.ts index 275667185..677dc8a57 100644 --- a/apps/game/server/bridge/qb/qbcore-server.ts +++ b/apps/game/server/bridge/qb/qbcore-server.ts @@ -33,6 +33,8 @@ export class QBCoreFramework implements Strategy { on("QBCore:Server:OnPlayerUnload", async () => { await PlayerService.handleUnloadPlayerEvent(global.source); }) + + mainLogger.info('QBCore bridge initialized'); } onStart(): void { diff --git a/apps/game/server/bridge/qbx/qbx-server.ts b/apps/game/server/bridge/qbx/qbx-server.ts index 990432d90..a6f2c9834 100644 --- a/apps/game/server/bridge/qbx/qbx-server.ts +++ b/apps/game/server/bridge/qbx/qbx-server.ts @@ -33,6 +33,8 @@ export class QBXFramework implements Strategy { on('QBCore:Server:OnPlayerUnload', async () => { await PlayerService.handleUnloadPlayerEvent(global.source); }); + + mainLogger.info('QBX bridge initialized'); } onStart(): void { diff --git a/apps/game/server/bridge/standalone/standalone-server.ts b/apps/game/server/bridge/standalone/standalone-server.ts index d67592bf2..aaa0bab78 100644 --- a/apps/game/server/bridge/standalone/standalone-server.ts +++ b/apps/game/server/bridge/standalone/standalone-server.ts @@ -1,16 +1,9 @@ -import { config } from '@npwd/config/server'; import { mainLogger } from '../../sv_logger'; import { Strategy } from '../framework-strategy'; export class Standalone implements Strategy { constructor() { - mainLogger.info('Loading Standalone bridge....'); - - config.general.useResourceIntegration = true; - config.database.identifierColumn = 'identifier'; - config.database.phoneNumberColumn = 'phone_number'; - config.database.playerTable = 'users'; - config.database.identifierType = 'license'; + mainLogger.info('Loading NPWD Standalone'); } init(): void { diff --git a/examples/qbcore/ambulance_alert.lua b/examples/qbcore/ambulance_alert.lua index c916efd73..842360234 100644 --- a/examples/qbcore/ambulance_alert.lua +++ b/examples/qbcore/ambulance_alert.lua @@ -1,22 +1,22 @@ -local QBCore = exports['qb-core']:GetCoreObject() +local QBCore = exports["qb-core"]:GetCoreObject() -RegisterNetEvent('hospital:server:ambulanceAlert', function(text) - local src = source - local ped = GetPlayerPed(src) - local coords = GetEntityCoords(ped) - local players = QBCore.Functions.GetQBPlayers() - for _, v in pairs(players) do - if v.PlayerData.job.name == 'ambulance' and v.PlayerData.job.onduty then - exports.npwd:emitMessage({ - senderNumber = '911', - targetNumber = v.PlayerData.charinfo.phone, - message = 'Person is dead.', - embed = { - type = "location", - coords = { coords.x, coords.y, coords.z }, - phoneNumber = '911' - } - }) - end - end -end) \ No newline at end of file +RegisterNetEvent("hospital:server:ambulanceAlert", function(text) + local src = source + local ped = GetPlayerPed(src) + local coords = GetEntityCoords(ped) + local players = QBCore.Functions.GetQBPlayers() + for _, v in pairs(players) do + if v.PlayerData.job.name == "ambulance" and v.PlayerData.job.onduty then + exports.npwd:emitMessage({ + senderNumber = "911", + targetNumber = v.PlayerData.charinfo.phone, + message = "Person is dead.", + embed = { + type = "location", + coords = { coords.x, coords.y, coords.z }, + phoneNumber = "911", + }, + }) + end + end +end)