Skip to content

Commit

Permalink
Merge pull request #386 from kdxr/patch-2
Browse files Browse the repository at this point in the history
fix undefine variable
  • Loading branch information
AvarianKnight authored Jan 27, 2023
2 parents 01009ff + 8024f3f commit d4a77ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/module/radio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ 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')
end
end
end

end)
end)

0 comments on commit d4a77ab

Please sign in to comment.