refactor: small optimization

This commit is contained in:
MoskalykA
2023-12-21 20:17:32 +01:00
parent b132f2963e
commit fb4cc3e113
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ end)
RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
local ped = PlayerPedId()
local hash = GetHashKey(vehName)
local hash = joaat(vehName)
local veh = GetVehiclePedIsUsing(ped)
if not IsModelInCdimage(hash) then return end
RequestModel(hash)