Jump to content

Preciso de ajuda com o givePlayerMoney


Recommended Posts

10 hours ago, Lord Henry said:

Olá @Jubs_noob, você pode utilizar Math.random para fazer isso. Especificando o valor mínimo no primeiro parâmetro e o máximo no segundo.

como eu fazeria isso com esse givemoney

 

function fim(player)
    if vehjob[player] and isElement(vehjob[player]) then
        givePlayerMoney(player, 1000)
        destroyElement(vehjob[player])
        setElementVisibleTo(finblip, player, false)
        setElementVisibleTo(finmarker, player, false)
        outputChatBox("Voce Finalizou o trabalho com sucesso e ganhou a recompensa", player, 255, 255, 255, true)
    end
end
addEventHandler("onMarkerHit", finmarker, fim)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...