Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8465ecd

Browse files
committed
chore(ers): Update ERS event names
1 parent96cabdf commit8465ecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎sonorancad/submodules/ersintegration/sv_ersintegration.lua‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ local postalConfig = Config.GetPluginConfig("postals")
1111
ifpluginConfig.enabledthen
1212
functionstartErs()
1313
debugLog("Starting ERS Integration...")
14-
RegisterNetEvent('SonoranCAD::ErsIntegration::CalloutOffered')
15-
RegisterNetEvent('SonoranCAD::ErsIntegration::CalloutAccepted')
14+
RegisterNetEvent('ErsIntegration::OnIsOfferedCallout')
15+
RegisterNetEvent('ErsIntegration::OnAcceptedCalloutOffer')
1616
RegisterNetEvent('SonoranCAD::ErsIntegration::BuildChars')
1717
RegisterNetEvent('SonoranCAD::ErsIntegration::BuildVehs')
1818
registerApiType('SET_AVAILABLE_CALLOUTS','emergency')
@@ -182,7 +182,7 @@ if pluginConfig.enabled then
182182
911 CALL CREATION
183183
]]
184184
ifpluginConfig.create911Callthen
185-
AddEventHandler('SonoranCAD::ErsIntegration::CalloutOffered',function(calloutData)
185+
AddEventHandler('ErsIntegration::OnIsOfferedCallout',function(calloutData)
186186
localuniqueKey=generateUniqueCalloutKey(calloutData)
187187
debugLog('Generated unqiue key for callout:'..uniqueKey)
188188
ifpluginConfig.clearRecordsAfter~=0andprocessedCalloutOffered[uniqueKey]then
@@ -245,7 +245,7 @@ if pluginConfig.enabled then
245245
EMERGENCY CALL CREATION
246246
]]
247247
ifpluginConfig.createEmergencyCallthen
248-
AddEventHandler('SonoranCAD::ErsIntegration::CalloutAccepted',function(calloutData)
248+
AddEventHandler('ErsIntegration::OnAcceptedCalloutOffer',function(calloutData)
249249
localuniqueKey=generateUniqueCalloutKey(calloutData)
250250
ifpluginConfig.clearRecordsAfter~=0andprocessedCalloutAccepted[uniqueKey]then
251251
localentry=processedCalloutAccepted[uniqueKey]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp