Thank you guys for your help. This is the code that ended up working
//Brick data
datablock fxDTSBrickData (brickKeyboardData)
{
brickFile = "Add-Ons/GameMode_CityRPG/shapes/Bricks/1x3FKeyboard.blb";
canCover = true;
category = "CityRPG";
subCategory = "Resources";
uiName = "Keyboard";
isTypable = true;
price = $CityRPG::prices::resources::keyboard;
CityRPGBrickType = 4;
CityRPGBrickAdmin = false;
};
//events
package brickKeyboardPackage
{
function fxDTSBrick::onActivate(%brick, %obj, %client, %pos, %dir)
{
parent::onActivate(%brick, %obj, %client, %pos, %dir);
if(%brick.getDataBlock().isTypable == true)
{
%client.onType();
messageClient(%client, '', "\c3click");
}
}
};
activatepackage(brickKeyboardPackage);
The message was to see if it would work, in case the onType function was broken somehow (which it is, because i typed it in wrong)