Jump to content

Recommended Posts

Boa tarde,

Gostaria de saber como colocar um texto acima de um marker, segue o script de um marker para exemplificar melhor.

 

marker = createMarker ( 1177.4351806641, -1308.5612792969, 13.994218826294 -1, "cylinder", 1.5, 5,106,204, 50)

veh = {}
function pegarbike ( source )
if isElementWithinMarker (source, marker ) then
if veh[source] and isElement( veh[source] ) then destroyElement(veh[source] )
 veh[source] = nil
 end
 local x,y,z = getElementPosition(source)
 veh[source] = createVehicle(510 , 1176.7322998047, -1307.6915283203, 13.936520576477)
                takePlayerMoney(source,100)
 exports.Scripts_Dxmessages:outputDx(source,'#00FF00[GBO] #FFFFFFFoi cobrado #00FF00$100 #FFFFFFpelo aluguel.',source,255,255,255,true)
 exports.Scripts_Dxmessages:outputDx(source,'#00FF00[GBO] #FFFFFFSe você sair da bicicleta a seguradora pegará devolta.',source,255,255,255,true)
 warpPedIntoVehicle (source,veh[source])
else
exports.Scripts_Dxmessages:outputDx(source,'#00FF00[GBO] #FFFFFFVocê precisa estar no spawn para alugar uma bike!',source,255,255,255,true)
end
end
addCommandHandler ( "alugar", pegarbike  )

function msg (source)
exports.Scripts_Dxmessages:outputDx(source,'#00FF00[GBO] #FFFFFFDigite #00FF00/alugar #FFFFFFpara alugar uma bicicleta será cobrado #00FF00$100 #FFFFFF.',source,255,255,255,true)
end
addEventHandler( "onMarkerHit", marker, msg )

function sair (source)
if (veh[source]) and isElement(veh[source]) then
destroyElement (veh[source])
exports.Scripts_Dxmessages:outputDx(source,'#00FF00[GBO] #FFFFFFVocê abandonou a bicicleta e a seguradora pegou',source,255,255,255,true)
   end
end
addEventHandler ("onVehicleExit", root, sair)

unknown.png

Gostaria de colocar acima do marker aparecesse "Alugue uma bicicleta por R$ 100,00! Digite /alugar"

Sei que existe o dx msg pra isso, mas não ta funcionando, não sei o motivo.

Fico no aguardo.

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