Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CEvent = setmetatable( { }, {
- __index = function ( _, k )
- return setmetatable( { m_sName = k,
- Add = function ( self, bAllowRemoteTrigger, pRoot, pFunction )
- addEvent( self.m_sName, bAllowRemoteTrigger );
- if ( pRoot and pFunction ) then
- addEventHandler ( self.m_sName, pRoot, pFunction );
- end
- end }, { }
- );
- end;
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement