likemike12 Posted April 21, 2016 Share 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 ) Link to comment
Ahmed Ly Posted April 21, 2016 Share 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 ) Link to comment
KariiiM Posted April 21, 2016 Share 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 Link to comment
Ahmed Ly Posted April 21, 2016 Share 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 Link to comment
ma2med Posted April 21, 2016 Share Posted April 21, 2016 warpPedIntoVehicle is serverside Link to comment
KariiiM Posted April 21, 2016 Share Posted April 21, 2016 warpPedIntoVehicle is serverside No, it's a shared function Link to comment
Fist Posted April 21, 2016 Share 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. Link to comment
Anubhav Posted April 22, 2016 Share Posted April 22, 2016 Just create the bindKey at server side . 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