Yeah, I already noticed that, but I type this into console:
eval("findclientbybl_id(zzzz).canLeaveTrain = false;");
That works.
This doesn't
function serverCmdleavetrain(%client)
{
%client.canLeaveTrain = true;
schedule(5000, 0, eval, "%client.canLeaveTrain = false;");
}