@@ -11,8 +11,8 @@ local postalConfig = Config.GetPluginConfig("postals")
1111if pluginConfig .enabled then
1212function startErs ()
1313debugLog (" Starting ERS Integration..." )
14- RegisterNetEvent (' SonoranCAD:: ErsIntegration::CalloutOffered ' )
15- RegisterNetEvent (' SonoranCAD:: ErsIntegration::CalloutAccepted ' )
14+ RegisterNetEvent (' ErsIntegration::OnIsOfferedCallout ' )
15+ RegisterNetEvent (' ErsIntegration::OnAcceptedCalloutOffer ' )
1616RegisterNetEvent (' SonoranCAD::ErsIntegration::BuildChars' )
1717RegisterNetEvent (' SonoranCAD::ErsIntegration::BuildVehs' )
1818registerApiType (' SET_AVAILABLE_CALLOUTS' ,' emergency' )
@@ -182,7 +182,7 @@ if pluginConfig.enabled then
182182 911 CALL CREATION
183183]]
184184if pluginConfig .create911Call then
185- AddEventHandler (' SonoranCAD:: ErsIntegration::CalloutOffered ' ,function (calloutData )
185+ AddEventHandler (' ErsIntegration::OnIsOfferedCallout ' ,function (calloutData )
186186local uniqueKey = generateUniqueCalloutKey (calloutData )
187187debugLog (' Generated unqiue key for callout:' .. uniqueKey )
188188if pluginConfig .clearRecordsAfter ~= 0 and processedCalloutOffered [uniqueKey ]then
@@ -245,7 +245,7 @@ if pluginConfig.enabled then
245245 EMERGENCY CALL CREATION
246246]]
247247if pluginConfig .createEmergencyCall then
248- AddEventHandler (' SonoranCAD:: ErsIntegration::CalloutAccepted ' ,function (calloutData )
248+ AddEventHandler (' ErsIntegration::OnAcceptedCalloutOffer ' ,function (calloutData )
249249local uniqueKey = generateUniqueCalloutKey (calloutData )
250250if pluginConfig .clearRecordsAfter ~= 0 and processedCalloutAccepted [uniqueKey ]then
251251local entry = processedCalloutAccepted [uniqueKey ]