Jump to content

[ AJUDA ] outputChatBox não aparece!


Recommended Posts

Bom dia, boa tarde e boa noite. Estou fazendo um sistema de colete ( bem simples), porém a mensagem não aparece para o jogador ao colidir com o marker .

Código:

local markercolete = createMarker ( 2778.805, -2464.57, 13.636, "cylinder", 1.5, 255, 255, 0, 255)

 function msgM(thePlayer)
    outputChatBox("Digite /colete para equipar um colete!", thePlayer, 255, 0, 255)
end
addEventHandler("OnMarkerHit", markercolete, msgM)

function pegarcolete(thePlayer, command )
    if isElementWithinMarker(thePlayer, markercolete) then
    setPlayerArmor ( thePlayer, 100 )
    else
    outputChatBox("Você não está no local certo!", thePlayer, 255, 0, 0)
end
end
addCommandHandler ( "colete", pegarcolete )

 

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...