Implementing a flashlight into OpenAura

I was wondering if this was correct, I wanted to implement the standard flashlight into the OpenAura code so far I have this:

[lua]-- Called when a player switches their flashlight on or off.
function openAura.schema:PlayerSwitchFlashlight(player, on)
if ( on or player:GetSharedVar(“tied”) != 0) ) then
return false;

When I added that into the cl_hooks it didn’t work and actually removed some features. Can anyone shed some light on the situation.

Many thanks.

Use lua tags please.

Sorry about that.

I resolved this my self and created my own item for this, add me on steam and I’ll be happy to help.