Sign in to follow this  
Revolt

MTA Keep Elements?

Recommended Posts

Why not? It seems like an useful feature. Why completely eliminate it? I've also seen that they eliminated the possibility to create elements in exported functions.

Share this post


Link to post

Yeah, but that doesn't explain the export issue. Why can't I trigger an exported function (that creates a vehicle) from a different resource?

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post
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).

Share this post


Link to post
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 

Share this post


Link to post
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.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.