ODutii Posted August 11, 2019 Share Posted August 11, 2019 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
Jonas^ Posted August 11, 2019 Share Posted August 11, 2019 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) 1 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