Jump to content

Ao entrar veh.


Recommended Posts

function msgentrar()
   local theVehicle = getPedOccupiedVehicle(source)
   if theVehicle == 0 then
    outputChatBox("#BDBDBDAperte M para ligar o veículo.",source,0,255,0,true) 
else
end
end
addEventHandler("onVehicleEnter",root, msgentrar)

Mensagem que irá aparecer quando apenas o motorista entrar no veículo, não funcionou.

Link to comment

seat é representado os acentos do veículo, faça assim:

addEventHandler ("onVehicleEnter", root, function (thePlayer, seat, jacked)
	if (seat == 0) then -- Se o jogador estiver no acento 0 (motorista), então:
		outputChatBox ("Aperte M para ligar o veículo.", thePlayer, 0, 255, 0) 
	end
end)

 

  • Like 1
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...