mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
perf: jenkins hashing over GetHashKey native
This commit is contained in:
@@ -111,9 +111,9 @@ function LoadDefaultModel(malePed, cb)
|
|||||||
local characterModel
|
local characterModel
|
||||||
|
|
||||||
if malePed then
|
if malePed then
|
||||||
characterModel = GetHashKey('mp_m_freemode_01')
|
characterModel = `mp_m_freemode_01`
|
||||||
else
|
else
|
||||||
characterModel = GetHashKey('mp_f_freemode_01')
|
characterModel = `mp_f_freemode_01`
|
||||||
end
|
end
|
||||||
|
|
||||||
RequestModel(characterModel)
|
RequestModel(characterModel)
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ function OpenMobileMechanicActionsMenu()
|
|||||||
local playerPed = PlayerPedId()
|
local playerPed = PlayerPedId()
|
||||||
local vehicle = GetVehiclePedIsIn(playerPed, true)
|
local vehicle = GetVehiclePedIsIn(playerPed, true)
|
||||||
|
|
||||||
local towmodel = GetHashKey('flatbed')
|
local towmodel = `flatbed`
|
||||||
local isVehicleTow = IsVehicleModel(vehicle, towmodel)
|
local isVehicleTow = IsVehicleModel(vehicle, towmodel)
|
||||||
|
|
||||||
if isVehicleTow then
|
if isVehicleTow then
|
||||||
@@ -937,9 +937,9 @@ Citizen.CreateThread(function()
|
|||||||
else
|
else
|
||||||
|
|
||||||
if
|
if
|
||||||
GetEntityModel(vehicle) == GetHashKey('flatbed') or
|
GetEntityModel(vehicle) == `flatbed` or
|
||||||
GetEntityModel(vehicle) == GetHashKey('towtruck2') or
|
GetEntityModel(vehicle) == `towtruck2` or
|
||||||
GetEntityModel(vehicle) == GetHashKey('slamvan3')
|
GetEntityModel(vehicle) == `slamvan3`
|
||||||
then
|
then
|
||||||
TriggerServerEvent('esx_service:disableService', 'mechanic')
|
TriggerServerEvent('esx_service:disableService', 'mechanic')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -997,7 +997,7 @@ AddEventHandler('esx_policejob:hasEnteredEntityZone', function(entity)
|
|||||||
CurrentActionData = {entity = entity}
|
CurrentActionData = {entity = entity}
|
||||||
end
|
end
|
||||||
|
|
||||||
if GetEntityModel(entity) == GetHashKey('p_ld_stinger_s') then
|
if GetEntityModel(entity) == `p_ld_stinger_s` then
|
||||||
local playerPed = PlayerPedId()
|
local playerPed = PlayerPedId()
|
||||||
local coords = GetEntityCoords(playerPed)
|
local coords = GetEntityCoords(playerPed)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user