#pls help
1 messages ยท Page 1 of 1 (latest)
1 thing i see is deny_commands should be in-line with amount and type
can you elaborate an any other issues you're facing with this?
i just lined it and it still doesnt work
what do you mean by that?
tell us what is happening
all you said was "what am I doing wrong"
explain your issue
Im trying to make a shop for vehicles. Im not very familiar with Deluxe menu, this Is the second menu i made.
What i tried to do Is:
Click commands gives you the vehicle, sends you a message saying you bought It, and takes away 5k from you.
Click requirements checks if you have 5k, if you dont It sends you a message saying you dont have enough Money and closes the menu
the menu just wont load when i reload
Did you add it to the config? Does it show in /dm list?
i copied the config i had created myself, deleted the file, generated a new menu file and pasted the config but it still doesnt work
Check the wiki
i did so many times
did you ?
You are missing display_name on the item ๐
`menu_title: 'Vehicles'
open_command:
- vehicles
size: 27
items:
'yellowtractor':
material: 'book'
display_name: 'Yellow Tractor'
slot: 0
lore:- '&fClick to buy a &#f2ff00T&#f2ff00r&#f2ff00a&#f2ff00c&#f2ff00t&#f2ff00o&#f2ff00r &f!'
- ''
- '&#f2ff00Price&f: 5000'
click_commands: - '[console] givetractor %player_name% YELLOW'
- '[console] economy take %player_name% 5000'
- '[message] &4&lROSESMP&f you have bought a &#f2ff00Yellow Tractor&f for 5000&2$&f!'
click_requirement:
requirements:
has_money:
type: 'has money'
amount: '5000'
deny_commands:- '[message] &4&lROSESMP &fYou don''t have enough �C00Dmoney&f for this!'`
Paste this into your menu file and into config.yml paste this
debug: HIGHEST check_updates: true gui_menus: vehicles: file: vehicles.yml
display_name is not required fyi
everything works except for the requirement. i can still buy the item even if i dont have enough money
try removing the ' ' around 5000 in the amount
ah, that would prob do it yep
and if so, there was probably a message in the log that signified the issue
bruh no
the issue is that the deny_commands doesnt have the correct syntax
and its passed as a requirement
@placid pine try this
click_requirement:
requirements:
has_money:
type: 'has money'
amount: '5000'
deny_commands:
- '[message] &4&lROSESMP &fYou don''t have enough �C00Dmoney&f for this!'
oh wait
wrong tag :/
@sudden ember ^
Oh Sorry i forgot to Say It worked
Yes i figured that out ty
Thanks all of you y'all saved me hours of pain ๐ญ๐
pretty sure it was the amount thing though, because amount: expects a number
placeholder: however, can accept a string https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-money


well...