Jump to content

onPedWeaponSwitch


Drakath

Recommended Posts

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...