Jump to content

MTA Keep Elements?


Revolt

Recommended Posts

Posted

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.

Posted

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?

Posted

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.

Posted

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

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

Posted
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 

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

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