From 8024f3ff05d5ef58e0cd4e1b860860d398d284a7 Mon Sep 17 00:00:00 2001 From: kdxr <52773524+kdxr@users.noreply.github.com> Date: Fri, 27 Jan 2023 17:06:39 +0700 Subject: [PATCH] fix undefine variable --- server/module/radio.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/module/radio.lua b/server/module/radio.lua index ca87920..8ef0e36 100644 --- a/server/module/radio.lua +++ b/server/module/radio.lua @@ -154,7 +154,7 @@ AddEventHandler("onResourceStop", function(resource) if type(radioNameGetter) == "table" then local radioRef = radioNameGetter.__cfx_functionReference if radioRef then - local isResource = string.match(functionRef, resource) + local isResource = string.match(radioRef, resource) if isResource then radioNameGetter = radioNameGetter_orig logger.warn('Radio name getter is resetting to default because the resource that gave the cb got turned off') @@ -162,4 +162,4 @@ AddEventHandler("onResourceStop", function(resource) end end -end) \ No newline at end of file +end)