Hello, is there any native responsible for ped is holding a weapon and ped is aiming? Please help.
thank you so much
the first one check weapon hash not if player hold any weapon in hands
There is no direct “is player using any weapon” native as far as I know; you will need to code a check through the first native. The weapon hashes are all well-known and you can find them online, then just implement a logic check for whatever purpose you are doing this for.
local weapon = GetSelectedPedWeapon(PlayerPedId())
if weapon ~= joaat('WEAPON_UNARMED') then
-- ped holding a weapon
print('weapon hash in hands', weapon)
end