Skip to content

overview

These functions help identify the group a weapon is in based on their ID.

If you are looking to see if a weapon that is currently ingame is a certain type, use moonlight.game.get_weapon_data instead. There is a type member that will already get this information for you.

moonlight.game.groups.is_pistol

Parameters

  • number id

Returns

  • boolean

moonlight.game.groups.is_sniper

Parameters

  • number id

Returns

  • boolean

moonlight.game.groups.is_smg

Parameters

  • number id

Returns

  • boolean

moonlight.game.groups.is_rifle

Parameters

  • number id

Returns

  • boolean

moonlight.game.groups.is_shotgun

Parameters

  • number id

Returns

  • boolean