From 5acadc7e984ea7a2675f355b14bd2f02526a6cfd Mon Sep 17 00:00:00 2001 From: Matthias <102318489+itsmaty@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:29:48 +0100 Subject: [PATCH] tweak(core/client/functions): change snake_case to lowerCamelCase --- [core]/es_extended/client/functions.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 4080b1d8..bc72bac6 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -508,9 +508,9 @@ function ESX.Game.GetClosestEntity(entities, isPlayerEntities, coords, modelFilt if modelFilter then filteredEntities = {} - for current_entity_index = 1, #entities do - if modelFilter[GetEntityModel(entities[current_entity_index])] then - filteredEntities[#filteredEntities + 1] = entities[current_entity_index] + for currentEntityIndex = 1, #entities do + if modelFilter[GetEntityModel(entities[currentEntityIndex])] then + filteredEntities[#filteredEntities + 1] = entities[currentEntityIndex] end end end @@ -1128,8 +1128,8 @@ function ESX.ShowInventory() { unselectable = true, icon = "fas fa-users", title = "Nearby Players" }, } - for current_nearby_player_index = 1, #playersNearby do - players[GetPlayerServerId(playersNearby[current_nearby_player_index])] = true + for currentNearbyPlayerIndex = 1, #playersNearby do + players[GetPlayerServerId(playersNearby[currentNearbyPlayerIndex])] = true end ESX.TriggerServerCallback("esx:getPlayerNames", function(returnedPlayers)