I have a script which is supposed to create a plane and set it's Z vector gravity high so it can't take off. Now here's the problem, in order to set the vehicles gravity I need to use setVehicleGravity function which is client sided only. Therefore I have to create a client-sided vehicle.. And that's where the problem arrives: The client sided vehicles are unenterable and undestructive... As an alternative I tried using warpPlayerIntoVehicle function but it is server-side function only. And now I am stuck, I don't know what to do, but the best solution would be to somehow create the vehicle server sided because I would like others to see it and somehow change the other part. Basically my question is: How do I make server-sided vehicle and change
it's gravity?
If it helps anyhow, this is the client sided code I wrote in order to create vehicle and change the gravity:
function createPlane()
local guy = getLocalPlayer()
plane = createVehicle (577, -1635.5999755859, -142.30000305176, 14.800000190735, 0, 0, 316 )
setVehicleGravity(plane, 0.008, 0.008, -10)
end
addCommandHandler ("go", createPlane)
Thanks in advance,
Koyax