ResourceLogic Error on the Robot controller

Hello,
I am trying to run the “ResourceLogic” script
for Robot transport Controller, but I get the following errors

.
I hope you can help me out :slight_smile:
Attached are the screenshots with code that is causing the problems according to the error messages.
293:

1748:

340:

1039:

Thanks