Jump to content

Koyax998

Members
  • Posts

    3
  • Joined

  • Last visited

Details

  • Gang
    Criminal

Koyax998's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Ok, thank you for the replies, please keep the topic open since I might be asking some more additional questions in case something doesn't work.
  2. 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
×
×
  • Create New...