JeViCo Posted April 4, 2018 Share Posted April 4, 2018 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( Link to comment
Moderators Patrick Posted April 4, 2018 Moderators Share Posted April 4, 2018 (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 April 4, 2018 by Patrick2562 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