From aa9f527bbda2c0c2f0701edfe1d62779bcc6353e Mon Sep 17 00:00:00 2001 From: d3rp-jsx <15928886+d3rp-jsx@users.noreply.github.com> Date: Mon, 25 Oct 2021 02:31:23 +0200 Subject: [PATCH] perf: jenkins hashing over GetHashKey native --- [esx]/skinchanger/client/main.lua | 4 ++-- [esx_addons]/esx_mechanicjob/client/main.lua | 8 ++++---- [esx_addons]/esx_policejob/client/main.lua | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[esx]/skinchanger/client/main.lua b/[esx]/skinchanger/client/main.lua index 9932b1bd..243f7101 100644 --- a/[esx]/skinchanger/client/main.lua +++ b/[esx]/skinchanger/client/main.lua @@ -111,9 +111,9 @@ function LoadDefaultModel(malePed, cb) local characterModel if malePed then - characterModel = GetHashKey('mp_m_freemode_01') + characterModel = `mp_m_freemode_01` else - characterModel = GetHashKey('mp_f_freemode_01') + characterModel = `mp_f_freemode_01` end RequestModel(characterModel) diff --git a/[esx_addons]/esx_mechanicjob/client/main.lua b/[esx_addons]/esx_mechanicjob/client/main.lua index 6f8de273..f0abc6ca 100644 --- a/[esx_addons]/esx_mechanicjob/client/main.lua +++ b/[esx_addons]/esx_mechanicjob/client/main.lua @@ -393,7 +393,7 @@ function OpenMobileMechanicActionsMenu() local playerPed = PlayerPedId() local vehicle = GetVehiclePedIsIn(playerPed, true) - local towmodel = GetHashKey('flatbed') + local towmodel = `flatbed` local isVehicleTow = IsVehicleModel(vehicle, towmodel) if isVehicleTow then @@ -937,9 +937,9 @@ Citizen.CreateThread(function() else if - GetEntityModel(vehicle) == GetHashKey('flatbed') or - GetEntityModel(vehicle) == GetHashKey('towtruck2') or - GetEntityModel(vehicle) == GetHashKey('slamvan3') + GetEntityModel(vehicle) == `flatbed` or + GetEntityModel(vehicle) == `towtruck2` or + GetEntityModel(vehicle) == `slamvan3` then TriggerServerEvent('esx_service:disableService', 'mechanic') end diff --git a/[esx_addons]/esx_policejob/client/main.lua b/[esx_addons]/esx_policejob/client/main.lua index 6266689c..25e5d135 100644 --- a/[esx_addons]/esx_policejob/client/main.lua +++ b/[esx_addons]/esx_policejob/client/main.lua @@ -997,7 +997,7 @@ AddEventHandler('esx_policejob:hasEnteredEntityZone', function(entity) CurrentActionData = {entity = entity} end - if GetEntityModel(entity) == GetHashKey('p_ld_stinger_s') then + if GetEntityModel(entity) == `p_ld_stinger_s` then local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed)