Jump to content

MTA Keep Elements?


Revolt

Recommended Posts

You CAN use exported functions to create an element in another resource. Where did you get that information that you can't? Show your code if you have it.

You cannot. It has been disabled for some reason, if you don't believe me, you can try it yourself and stop trying to be a smart-ass.

You could create a utility function to dump all of the element data, and then once the resource has restarted recreate it.

Yes, unfortunately that is how I'am doing it right now. But the problem is that some of the vehicles are used by the players at the moment of restart, therefore a small delay occurs in-between the restart period, and not to mention that you cannot save vehicle visual damage (or at least I haven't found the function to do so).

Link to comment
Yes, unfortunately that is how I'am doing it right now. But the problem is that some of the vehicles are used by the players at the moment of restart, therefore a small delay occurs in-between the restart period, and not to mention that you cannot save vehicle visual damage (or at least I haven't found the function to do so).

You can.

setVehicleDoorState 
getVehicleDoorState 
setVehiclePanelState 
getVehiclePanelState 

Link to comment
Yes, unfortunately that is how I'am doing it right now. But the problem is that some of the vehicles are used by the players at the moment of restart, therefore a small delay occurs in-between the restart period, and not to mention that you cannot save vehicle visual damage (or at least I haven't found the function to do so).

You can.

setVehicleDoorState 
getVehicleDoorState 
setVehiclePanelState 
getVehiclePanelState 

Thanks, I searched everywhere and somehow overlooked this. :lol:

I guess the restart delay is not fixable, but better something than nothing.

Link to comment

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