Hi i'm just asking about developing or adding a new Cvar to the game, i want to find a way to the ai to give him additional cash, i tried to modify the truck by changing the cost from 500 to -5000 it works and added TRUK to ai but when you take it down the game crushes.
So the best thing is to give the extras ressources by adding an exact command: /givecashai
thanks for helping

The best solution would likely be adding a "CashTrickler" trait that is conditional and enabled by the "GrantConditionOnBotOwner" trait.
For example adding something like the following would give the normal AI $50 every 5 seconds:

This is a great solution, i'm trying to find Mods.Common.traits for hours but nothing found, even try to execute OpenRa.Mods.Common dont know how it works, could you help me with this ? otherwise thanks for the answer

I see, CashTrickler doesn't work on player actors right now (engine bug), sorry for being misleading here. For now you can try putting that trait on a dummy actor, or just putting on for example the construction yard so that AIs get money while that still exists.

Thanks, for now i just created a new unit similar to the TRUK replaced by CASH, added to the Ai squadmanager cash: 10 cost: -5000 with cloak, the take down of the truck crash because of the player exp, i fix it... i hope this issue of the cashtrilckler will be fixed in the next release...