Doing this crashes the server when isCuffed = 1;
function Armor::onMount(%client, %player, %mount, %mountClient)
{
parent::onMount(%client, %player, %mount, %mountClient);
if(%mount.getClassName() $= "WheeledVehicle")
{
if(%player.getDatablock().isCuffed)
{
servercmdPrevSeat(%player.client);
}
}
}
Edit: It IS in a package
Any idea why?