Jump to content

Cannot spawn entities with command

Pending 1.2.26

Nomad3211
  • in Shop

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%

Share this comment


Link to comment

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"

        }

      }

    }

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.8k

Files Sold

Total number of files sold.

1.6m

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.