Aşağıda vereceğim kod satırı ile GTA V'in default hud'larını kapatmış olursunuz, kod satırını herhangi bir client içerisine yazarsanız çalışacaktır.
Kod:
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if not IsAimCamActive() or not IsFirstPersonAimCamActive() then
HideHudComponentThisFrame(14)
end
if IsHudComponentActive(1) then
HideHudComponentThisFrame(1)
end
if IsHudComponentActive(6) then
HideHudComponentThisFrame(6)
end
if IsHudComponentActive(7) then
HideHudComponentThisFrame(7)
end
if IsHudComponentActive(9) then
HideHudComponentThisFrame(9)
end
if IsHudComponentActive(0) and not IsPedInAnyVehicle(PlayerPedId(), true) then
HideHudComponentThisFrame(0)
end
SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(800)
local playerPed = PlayerPedId()
local vehicle = GetVehiclePedIsTryingToEnter(playerPed)
if vehicle and DoesEntityExist(vehicle) then
local driverPed = GetPedInVehicleSeat(vehicle, -1)
if GetVehicleDoorLockStatus(vehicle) == 7 then
SetVehicleDoorsLocked(vehicle, 2)
end
if driverPed and DoesEntityExist(driverPed) then
SetPedCanBeDraggedOut(driverPed, false)
end
end
end
end)