mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 19:01:37 +00:00
perf: jenkins hashing over GetHashKey native
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user