Drakath Posted February 21, 2015 Share Posted February 21, 2015 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
DakiLLa Posted February 21, 2015 Share Posted February 21, 2015 To make it work for players, use "onPlayerWeaponSwitch" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now