Support GUIShop Commands please
Support GUIShop Commands
I do not understand your request. Please provide more information. How would a a player use GUI shop to lock a vehicle?
This is just a guess: would the player have to look at the vehicle, then open the GUI shop, make a purchase, which would add a lock to the vehicle they are looking at?
WhiteThunder
This is just a guess: would the player have to look at the vehicle, then open the GUI shop, make a purchase, which would add a lock to the vehicle they are looking at?
YES!! That's Right
Hmm I'm not that familiar with GUI shop but I suspect that plugin will need architectural changes to support this. For example, GUI shop should ideally detect that you are looking at a vehicle, or else not show the options for this. Additionally, since the vehicle could move or be destroyed after you open the GUI shop, the command may fail but still charge you, since AFAIK GUI shop does not support callbacks.
Is there any similar plugin that supports running GUI shop commands for something the player is looking at?
"Lock Car": {
"DisplayName": "Lock Car",
"Shortname": "LockType.KeyLock",
"EnableBuy": true,
"EnableSell": false,
"Image": "https://i.imgur.com/vI6LwCZ.png",
"SellPrice": 1.0,
"BuyPrice": 100.0,
"BuyCooldown": 10,
"SellCooldown": 0,
"KitName": null,
"Command": [
"oxide.grant user $player.id vehicledeployedlocks.keylock.modularcar",
"chat.say /vkeylock"
],
"SkinId": 0
},
-------------------------------
This is my coding
I will check with the GUI shop maintainer if we can make this possible.
Another way to approach this problem would be to have GUI shop give the player a skinned lock item, that can only be deployed to vehicles or specific vehicle types. Then picking up the lock from the vehicle would give you that skinned item for instance. That could be supported by this plugin without any changes to other plugins, but of course I would have to implement it, and someone would have to create the skin icon(s).
OK Thank you