i have a script that makes it so it takes off the reticle but i wanna keep it for LEO so i was wondering how can i make it so the script checks for a hexid and if your hex id is there it doesnt take off the reticle? here is the code
"local Staff =
{
"steam:HEXID HERE",
}
local isStaff = false
for _,k in pairs(Staff) do
if(k == getPlayerID(source)) then
isStaff = true
break;
end
end
function getIdentifiant(id)
for _, v in ipairs(id) do
return v
end
end
function getPlayerID(source)
local identifiers = GetPlayerIdentifiers(source)
local player = getIdentifiant(identifiers)
return player
end
if(not isStaff) then
Citizen.CreateThread(function()
local isSniper = false
while true do
Citizen.Wait(0)
local ped = GetPlayerPed(-1)
local currentWeaponHash = GetSelectedPedWeapon(ped)
if currentWeaponHash == 100416529 then
isSniper = true
elseif currentWeaponHash == 205991906 then
isSniper = true
elseif currentWeaponHash == -952879014 then
isSniper = true
elseif currentWeaponHash == GetHashKey('WEAPON_HEAVYSNIPER_MK2') then
isSniper = true
else
isSniper = false
end
if not isSniper then
HideHudComponentThisFrame(14)
end
end
end
end)