Jump to content

Warping player to a car - client side possible?


Chlorek

Recommended Posts

What are you talking about, why you need to move alot of functions to another script, i think you don't understand,

It's so simple here (and you don't need to move anything)

--clientside 
function warpPlayer(vehicle) 
triggerServerEvent('warpThePlayer', root, vehicle) 
end 
  
--server side 
addEvent('warpThePlayer', true) 
addEventHandler('warpThePlayer', root, 
function(vehicle) 
warpPedIntoVehicle(client, vehicle) 
end 
) 

not tested but should work.

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