How to check if player has weapon

anyone knows how can I check if source player has any weapon in his inventory?
like IsPedArmed(GetPlayerPed(-1), 7)

Which framework/inventory do you use

its for a script so i guess its not my option but i belive most of the people using lj