From 1e2578c8771cd106aaa4a6b6440d266f47d608a3 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 5 Mar 2020 21:49:30 +0000 Subject: [PATCH] Fix for capitalised resource names --- cl_radar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 564a1be..943011a 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -45,10 +45,10 @@ local pairs = pairs ----------------------------------------------------------------------------------]]-- Citizen.SetTimeout( 1000, function() -- Get the name of the resource, for example the default name is 'wk_wars2x' - local name = GetCurrentResourceName() + local name = string.lower( GetCurrentResourceName() ) -- Print a little message in the client's console - print( "[wk_wars2x]: Sending resource name (" .. name .. ") to JavaScript side." ) + print( "[WolfKnight's Wraith ARS 2X]: Sending resource name (" .. name .. ") to JavaScript side." ) -- Send a message through the NUI system to the JavaScript file to give the name of the resource SendNUIMessage( { _type = "updatePathName", pathName = name } )