The first parameter on a class object is always refering to the object.
It should be fxDTSBrick::checkVip(%this,%client)
Make sure you see otto's registerOutputEvent function so you can see these on the events.
So basically you would have the code rewritten:
function fxDTSBrick::checkVip(%this,%client)
{
echo("Brick ==> checkVip > Event Called");
if(%client.isVip)
{
echo(%client.getPlayerName() @ " is VIP!");
%this.processInputEvent(onVipTrue,%client); //Call the event
}
}
For an input event, it would be a little different.
It would be
registerInputEvent(fxDTSBrick, onVipTrue, "Self fxDTSBrick" TAB "Player Player" TAB "Client GameConnection" TAB "MiniGame MiniGame");
function fxDTSBrick::onVipTrue(%this,%obj)
{
echo("Brick ==> onVipTrue > Event Called");
$InputTarget_["Self"] = %this; //Call the brick
$InputTarget_["Player"] = %obj; //Call the object that is activating it
$InputTarget_["Client"] = %obj.client; //Call the object's client
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.client); //Call the object's minigame
%this.processInputEvent("onVipTrue", %obj.client); //Process it
}