Does onPedWeaponSwitch work for players?
I tried adding this function:
function weaponSwitch ( previousWeaponID, currentWeaponID )
outputChatBox("A ped switched weapons from " .. previousWeaponID .. " to " .. currentWeaponID .. "!")
end
addEventHandler ( "onPedWeaponSwitch", getRootElement(), weaponSwitch )
but it didn't output anything when I was switching my weapons.