Add "Spawn" command to GUIShop it's not work

I've add "vl.spawn" command to GUIShop to purchase spawning a car

like this code...

"car": {
      "DisplayName": "car",
      "Shortname": "vehiclelicence.use",
      "EnableBuy": true,
      "EnableSell": false,
      "Image": "https://i.imgur.com/vI6LwCZ.png",
      "SellPrice": 1.0,
      "BuyPrice": 50.0,
      "BuyCooldown": 10,
      "SellCooldown": 0,
      "KitName": null,
      "Command": [
        "vl.spawn $player.id SmallCar"
      ],
      "SkinId": 0
    },

on server console is appear "[Vehicle Licence] The server console cannot use the 'vl.spawn' command"

How can I spawn command to GUIShop?

There is no such command....

Merged post

Console Commands

  • vl.buy -- Similar to /buy.
  • vl.buy <vehicle type> all -- Buy the vehicle license for all players
  • vl.buy <vehicle type> <player name or id> -- Bypass the cost and buy the vehicle license directly. Used for GUIShop and ServerRewards... e.g. 'vl.buy rhib 76561############'
  • vl.remove <vehicle type> all -- Remove the vehicle license for all players
  • vl.remove <vehicle type> <player name or id> -- Remove the player's vehicle license
  • vl.spawn -- Similar to /spawn.
  • vl.recall -- Similar to /recall.
  • vl.kill -- Similar to /kill.

i've change code to... in GUIShop

"Command": [
        "vl.spawn $player.id SmallCar"
      ],

result...



PS. "vl.buy" is worked  but cannot using "vl.spawn" 

NO `vl.spawn <player id> <vehicle type>` command...............
ONLY `vl.buy <vehicle type> <player id>` command..........

5Eyu8LcZQ0oyQ3J.jpg Arainrr

NO `vl.spawn <player id> <vehicle type>` command...............
ONLY `vl.buy <vehicle type> <player id>` command..........

I need to Spawn vehicle form GUIShop after buying license

I don't know why you want to spawn it from the GUIShop

Pp32OhVGoUTuX27.jpg Arainrr

I don't know why you want to spawn it from the GUIShop

I need to lower remember of many command for my player and I need to making economic system in my server

You should use GameMenu, not GUIShop

Merged post

There is also the RustyBangers plugin that provides the ui for vehicleLicence

same problem, how do you fix this?
Player want buy from GUI and than spawn the vehicle.