perf: jenkins hashing over GetHashKey native

This commit is contained in:
d3rp-jsx
2021-10-25 02:31:23 +02:00
parent 8153f6a922
commit aa9f527bbd
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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)
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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)