Main/resources/[weapons]/[Scripts]/z4-xhair/client/cl_xhair.lua
2025-07-26 08:56:55 +02:00

14 lines
No EOL
395 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)