Jump to content

Cannot spawn entities with command

Closed 1.2.26

Nomad3211
  • in Shop
Nomad3211

Posted

I am trying to put a command in the shop that allows players to buy a horse / rhib / etc. but when I purchase the command, it doesnt give me a horse.  when I enter the same command in the console, it gives me the horse no problem. 
Here is the command I am trying to add: 

entity.spawn ridablehorse %steamid%

Mevent

Posted

Hi! Can you show me your config?

Nomad3211

Posted

Sure thing! 

 

{

      "Enabled": true,

      "Title": "Commands",

      "Permission": "shop.commands",

      "Sort Type": "None",

      "Items": [

        {

          "Type": "Command",

          "ID": 1850545684,

          "Image": "",

          "Title": "",

          "Description": "",

          "Command (%steamid%)": "entity.spawn ridablehorse \"%player.z% %player.x% %player.y%\"",

          "Kit": "",

          "Plugin": {

            "Hook": "",

            "Plugin Name": "",

            "Amount": 1

          },

          "DisplayName (empty - default)": "Spawn Horse",

          "ShortName": "",

          "Skin": 0,

          "Is Blueprint": false,

          "Amount": 1,

          "Enable item buying?": true,

          "Price": 10000.0,

          "Enable item selling?": false,

          "Sell Price": 0.0,

          "Buy Cooldown (0 - disable)": 0.0,

          "Buy Cooldowns (0 - no limit)": {

            "shop.default": 0.0,

            "shop.vip": 0.0

          },

          "Sell Cooldown (0 - disable)": 0.0,

          "Sell Cooldowns (0 - no limit)": {

            "shop.default": 0.0,

            "shop.vip": 0.0

          },

          "Discount (%)": {

            "shop.default": 0,

            "shop.vip": 10

          },

          "Sell Limits (0 - no limit)": {

            "shop.default": 0,

            "shop.vip": 0

          },

          "Buy Limits (0 - no limit)": {

            "shop.default": 0,

            "shop.vip": 0

          },

          "Daily Buy Limits (0 - no limit)": {

            "shop.default": 0,

            "shop.vip": 0

          },

          "Daily Sell Limits (0 - no limit)": {

            "shop.default": 0,

            "shop.vip": 0

          },

          "Max Buy Amount (0 - disable)": 0,

          "Max Sell Amount (0 - disable)": 0,

          "Force Buy": false,

          "Prohibit splitting item into stacks?": false,

          "Localization": null,

          "Content": {

            "Enabled": false,

            "Contents": [

              {

                "ShortName": "",

                "Condition": 100.0,

                "Amount": 1,

                "Position": -1

              }

            ]

          },

          "Weapon": {

            "Enabled": false,

            "Ammo Type": "",

            "Ammo Amount": 1

          }

        }

      ],

      "Localization": {

        "Enabled": false,

        "Text (language - text)": {

          "en": "Test",

          "fr": "Test"

        }

      }

    }

 

Mevent

Posted

Changed Status from Pending to Closed

1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

121.9k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.