likemike12 Posted April 21, 2016 Posted April 21, 2016 hey there i need help to fix this code and thx bindKey("x","down", function() nn = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,nn) end end end )
Ahmed Ly Posted April 21, 2016 Posted April 21, 2016 bindKey("F2","down", function() local x,y,z = getElementPosition(localPlayer) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(localPlayer,nn) end )
KariiiM Posted April 21, 2016 Posted April 21, 2016 bindKey("F2","down", function() local x,y,z = getElementPosition(localPlayer) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(localPlayer,nn) end ) Wait? I don't recommand you to create the vehicle in client side
Ahmed Ly Posted April 21, 2016 Posted April 21, 2016 bindKey("F2","down", function() local x,y,z = getElementPosition(localPlayer) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(localPlayer,nn) end ) Wait? I don't recommand you to create the vehicle in client side why
KariiiM Posted April 21, 2016 Posted April 21, 2016 warpPedIntoVehicle is serverside No, it's a shared function
Fist Posted April 21, 2016 Posted April 21, 2016 warpPedIntoVehicle is serverside No, it's a shared function yes it is, but if you will create vehicle from client side then you cant enter in it and only that person can see for which was vehicle created. Also then 'warpPedIntoVehicle' wont work either and car will disappear after u reconnect.
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