Any idea how to add snowmobiles to the shop, i have it added and it works, but it adds the item to my inventory and i cant place them.
Adding snowmobiles to the shopFixed
New game items already get added to the bottom of the config.
However, vehicles have to be spawned using a command item the config contains 2 examples of this. Simply make a new one for the snowmobile
"Minicopter": {
"DisplayName": "Minicopter",
"CraftAsDisplayName": false,
"Shortname": "minicopter",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 0.0,
"EnableBuy": true,
"EnableSell": false,
"Image": "https://i.imgur.com/vI6LwCZ.png",
"SellPrice": 1.0,
"BuyPrice": 1.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": [
"spawn minicopter \"$player.x $player.y $player.z\""
],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
},
"Sedan": {
"DisplayName": "Sedan",
"CraftAsDisplayName": false,
"Shortname": "sedan",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 0.0,
"EnableBuy": true,
"EnableSell": false,
"Image": "",
"SellPrice": 1.0,
"BuyPrice": 1.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": [
"spawn sedan \"$player.x $player.y $player.z\""
],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
},Merged post
Alright, yeah after trying it out myself it seems no matter what I do it is in fact giving it to me as a game item.
Which doesn't make sense?
I will see if I can find a way to have it spawn properly.
Merged post
The latest update resolves this problem.
Please add the following to your config and set them in a shop that should work fine.
Feel free to change the display names and set an image link for them.
"Snow Mobile": {
"DisplayName": "Snow Mobile",
"CraftAsDisplayName": false,
"Shortname": "snowmobile",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 0.0,
"EnableBuy": true,
"EnableSell": false,
"Image": "",
"SellPrice": 1.0,
"BuyPrice": 1.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": [
"spawn snowmobile"
],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
},
"Snowmobile Tomaha": {
"DisplayName": "Snowmobile Tomaha",
"CraftAsDisplayName": false,
"Shortname": "tomaha",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 0.0,
"EnableBuy": true,
"EnableSell": false,
"Image": "",
"SellPrice": 1.0,
"BuyPrice": 1.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": [
"spawn snowmobiletomaha"
],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
}, This should work better for tomaha
"Command": ["spawn tomahasnowmobile \"$player.x $player.y $player.z\""],
instead of snowmobiletomaha
It works perfect for me this way. thanks @khan / @omegablue
"Snowmobile": {
"DisplayName": "Snowmobile",
"CraftAsDisplayName": false,
"Shortname": "snowmobile",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 750.0,
"EnableBuy": true,
"EnableSell": true,
"Image": "https://i.ibb.co/XzFkZyY/snowmobile.png",
"SellPrice": 1.0,
"BuyPrice": 50.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": ["spawn snowmobile \"$player.x $player.y $player.z\""],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
},
"Tomaha Snowmobile": {
"DisplayName": "Tomaha Snowmobile",
"CraftAsDisplayName": false,
"Shortname": "snowmobiletomaha",
"MakeBlueprint": false,
"AllowSellOfUsedItems": false,
"Condition": 750.0,
"EnableBuy": true,
"EnableSell": true,
"Image": "https://i.ibb.co/9gmzThC/snowmobiletomaha.png",
"SellPrice": 1.0,
"BuyPrice": 50.0,
"BuyCooldown": 0,
"SellCooldown": 0,
"BuyQuantity": [],
"SellQuantity": [],
"BuyLimit": 0,
"BuyLimitResetCoolDown": 0,
"SellLimit": 0,
"SellLimitResetCoolDown": 0,
"KitName": "",
"Command": ["spawn tomahasnowmobile \"$player.x $player.y $player.z\""],
"RunCommandAndCustomShopItem": false,
"GeneTypes": [],
"SkinId": 0
},
Locked automatically