#not got enough money but i can still buy

1 messages · Page 1 of 1 (latest)

dense lotus
#

how can i make it so if a player doesnt have enough money they cant buy the item that they wish to buy?

crisp crag
dense lotus
#

ive got a requirementn in and it still works:

left_click_requirement:
  requirements:
      type: 'has money'
      input: '%vault_eco_balance%'
      output: '250000'
crisp crag
#

you don't need input with has money, and use amount instead of output

#

otherwise, you can keep input and output and use type: ">=" instead

#

but I'd recommend going with the type: has money and amount: 250000

dense lotus
#

so ive changed it to:

left_click_requirement:
  requirements:
      type: 'has money'
      amount: '250000'    

and i can still buy with only 11k

crisp crag
#

send your entire file

#

?paste

honest apexBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

dense lotus
#

the one ive just changed is protection crystal (its near the bottom)

crisp crag
#

you forgot the requirement's name

#

    left_click_requirement:
      requirements:
        requirementName:
          type: 'has money'
          amount: '250000'
dense lotus
#

what should i put there?

crisp crag
#

anything, just a name

dense lotus
#

so do something like this:

left_click_requirement:
requirements:
requirementName: money
type: 'has money'
amount: '250000'

crisp crag
#

no, the name is the part before the :, dont put anything after the :

crisp crag
crisp crag
#

just copy what I have and it'll work

dense lotus
crisp crag
#

wot

dense lotus
#

27.12 20:34:54 [Server] Server thread/INFO CONSOLE issued server command: /eco take RYN0 250000
27.12 20:34:54 [Server] Server thread/INFO Error: The minimum balance a user can have is -$10,000.
27.12 20:34:54 [Server] Server thread/INFO RYN0 issued server command: /ce crystal 1

#

but i have the item in my hotbar :L

crisp crag
#

can you send your file again?

dense lotus
crisp crag
#

uh

#

I'm not sure why that doesn't work

#

can you try to remove the ' ' around the number?

dense lotus
#

that seemed to work thankyou dude much appreciated ❤️

crisp crag
dense lotus
#

but my deny message doesnt appear

crisp crag
#

oh yeah

#

put it under requirements instead

dense lotus
#

that didnt work

crisp crag
#
   left_click_requirement:
      requirements:
        requirementName:
          type: 'has money'
          amount: '250000'
        deny_commands:
          - ""
#

if it doesn't work, add 2 spaces before deny_commands

dense lotus
#

the 2 spaces worked