Did nobody see this?
%player.dismount();
is all you need
Here, I fixed it for you
package driverslicense
{
function Armor::onMount(%this, %player, %col, %mountObj, %unknownB)
{
%client = %player.client;
if(cityRPGData.getData(%client.getBlid()).valueCanDrive)
return parent::OnMount(%this, %player, %col, %mountObj, %unknownB);
messageclient(%client, '', "\c6You need a Drivers License!");
%player.dismount();
return;
}
};
activatePackage(driverslicense);
I know it works, I even tested it.