OFF_Gunner Posted July 12, 2020 Share Posted July 12, 2020 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
Other Languages Moderators androksi Posted July 12, 2020 Other Languages Moderators Share Posted July 12, 2020 O evento está com uma letra errada, é onMarkerHit, e não OnMarkerHit. 1 1 Link to comment
OFF_Gunner Posted July 12, 2020 Author Share Posted July 12, 2020 Obrigado pela ajuda ( erro tosco kkkkk ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now