Command console for /mycarSolved

Good morning,

is there a console command corresponding to /mycar (2,3,4) or is it possible to integrate one?

I explain my request:I use the Craft Panel and Portable Vehicles plugins to allow players to craft a car.
There is no possibility for the Craft Panel plugin to use a chat command.
The Portables Vehicles plugin crafts a car but it is damaged and has no engine or fuel.
There is the givecar <player> <preset> option, but two things are blocking me.
The first, the Craft Panel config to give a car is composed like this:"Command (keep empty to create item)": "portablevehicles.give {steamID} tomahasnowmobile" and so it would take a givecar 4 {steamID} command.
The second, I absolutely did not understand how to create presets... :)
Can you give me an example that matches /mycar 2?Thank you for the help you can give me.

Technically the /mycar command is both a console and chat command. However, it is not suitable for a Craft Panel, I imagine, because there is no cost to use it. If you want to basically craft a car (with a cost), the closest thing is the givecar command (but you need to make another plugin charge the player then run that command), but it works differently than /mycar. There is no way to give a random car preset, or a player-defined car preset using the givecar command. Instead, you have to define a car preset in the config (define how long it is, what modules it has, fuel, etc.), then that preset can be spawned for players via the givecar command. Examples of how to define such a preset are already in the documentation, so I'm not sure what more you are looking for in terms of examples.

Thank you for your answer WhiteThunder.
Actually, I hadn't seen the example, I will be inspired to create others.
In any case, with the examples it works very well.
The important information I didn't have is that givecar is also a console command.
And I was able to write this:
"Command (keep empty to create item)": "givecar {steamID} ArmoredCar"

Locked automatically