Main/resources/[jobs]/[weapons]/z4-xhair/client/cl_xhair.lua
2025-06-07 08:51:21 +02:00

14 lines
No EOL
408 B
Lua

--HELLO
Citizen.CreateThread(function()
while true do
Citizen.Wait(500)
local get_ped = PlayerPedId()
local get_ped_veh = GetVehiclePedIsIn(get_ped, false)
if (IsPlayerFreeAiming(PlayerId())) then
SendNUIMessage("xhairShow")
elseif not (IsPlayerFreeAiming(PlayerId())) then
SendNUIMessage("xhairHide")
end
end
end)