Jump to content

KKZinho

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by KKZinho

  1. takeMoney = function (player, _, state, informations) if isElementWithinMarker(player, markerMoney[player]) and state == 'down' then math.randomseed(getTickCount()) local money = math.random(4500, 7000) setPedAnimation(player, 'ROB_BANK', 'CAT_Safe_Rob') setElementFrozen(player, true) setTimer(function () setPedAnimation(player) setElementFrozen(player, false) if informations['dinheiro'] and markerMoney[player] then destroyElement(informations['dinheiro']) destroyElement(markerMoney[player]) end end, 10000, 1) end end Ele chama 1x os dois destroyElement e depois tentar chamar denovo e dá erro...
×
×
  • Create New...