Jump to content

MultiNo

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by MultiNo

  1. aah, got it, thank you <3
  2. .lua:9: attempt to compare number with boolean
  3. I want to add getPlayerMoney, but I always got the error: "attempt to compare number with boolean" I do not know what it I'm doing wrong, before that everything works perfectly
  4. can someone help me? local armour = { } local timee = 10000 addCommandHandler ( "armour", function ( source ) if ( armour [ source ] ) then return outputChatBox ( "Wait 10 seconds to use this command again", source, 225, 0, 0 ) end local money = getPlayerMoney ( thePlayer ) if money >= 499 then outputChatBox ('' .. getPlayerName(source) .. 'Bought A Armour (/armour)', root, 255, 255, 255, true) setPedArmor( source, 100 ) takePlayerMoney ( source, 500 ) else outputChatBox("you do not have enough money!",thePlayer, 255, 0, 0) end armour [ source ] = true setTimer ( function ( ) armour [ source ] = false end , timee, 1 ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( armour [ source ] ) then armour [ source ] = nil end end )
×
×
  • Create New...