Do something when player equips an item

[COLOR=rgb(51,51,51)]I wanna do something when the player equips an item, but I don’t know which code I can use.[COLOR=rgb(51,51,51)]something like:

“void onItemEquip(){}”

[COLOR=rgb(51,51,51)]I want to do that every time the player equips/unequip or has the item equipped.[COLOR=rgb(51,51,51)]Thanks

Currently there’s no hook called when an item gets equipped that I could find (