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%

  • Curator
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"

        }

      }

    }

 

  • Curator
Mevent

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
158.7k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.