Forum

> > Trash > Shop lua doesn't work
Forums overviewTrash overviewLog in to reply

English Shop lua doesn't work

3 replies
To the start Previous 1 Next To the start

closed moved Shop lua doesn't work

Good day
User Off Offline

Quote
My lua doesn't work. Pls help me.

addhook("menu","aus_menu3")
function aus_menu3(id,t,b)
          if(t == "Drug store") then
                    if(b == 1) then
                         if money[id]>=30000 then
                         parse("speedmod "..id.." 50")
                         money[id]=money[id]-30000
               else
          nope(id)
               end
                    elseif(b == 2) then
                    if money[id]>=90000 then
                         parse("speedmod "..id.." 100")
                         money[id]=money[id]-90000
               else
          nope(id)
               end
                    elseif(b == 4) then
                    if money[id]>=5000 then
                         parse("setmaxhealth "..id.." 150")
                         money[id]=money[id]-5000
               else
          nope(id)
               end
                    elseif(b == 5) then
                    if money[id]>=15000 then
                         parse("setmaxhealth "..id.." 250")
                         money[id]=money[id]-15000
               else
          nope(id)
                    end

                    end
          end
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview