Jump to content

Cars fall from base


Recommended Posts

Posted

How i can fix that bug when all cars fall from base ? I mean if cars are at secound floor they will fall while they arrive on the ground. How i can fix that ?

  • Moderators
Posted

There is one other, render them at position.

"onClientPreRender" 
setElementPosition 

Posted

Or just freeze them permanently and when someone enters a vehicle, unfreeze it (onVehicleEnter). There's actually no need to slow down your code with renders and stream events and such...

Posted
Best way is not mo make bases on the air and make them on default GTA ground.

Not necessarily, if he really wants bases in the air, then my answer is the best (or CodyL's).

Posted

On stream out check if its a car if so Freeze; On stream in, check if its a car, if so unfreeze, simple as that causes 0 lag. Dear lord.

https://wiki.multitheftauto.com/wiki/OnElementStartSync

https://wiki.multitheftauto.com/wiki/OnElementStopSync

https://wiki.multitheftauto.com/wiki/SetElementFrozen

https://wiki.multitheftauto.com/wiki/GetElementType

If you need help I'll write you a code later. Laptop doesn't want to work correctly so I can't at the moment.

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