Jump to content

OnClientVehicleStartEnter get vehicle


JeViCo

Recommended Posts

Posted

Hello everyone! How can i get vehicle variable which i'm entering? I use OnClientVehicleStartEnter and found nothing on wiki about that. getPedOccupiedVehicle won't work(

  • Moderators
Posted (edited)

You need the vehicle's element?

addEventHandler("onClientVehicleStartEnter", root, function(player, seat, door)
    -- source is the vehicle element
    local vehname = getVehicleName(source)
	outputChatBox("Entering to "..vehname, player)
end)

 

Edited by Patrick2562

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