Piorun Posted April 28, 2015 Share Posted April 28, 2015 Hi, I made some simple code : createElement("whatever", "1") createElement("whatever", "2") ... and later in code i want to create loop for every elements specified by type. I mean something like for key,val in ipairs(getElementsByType("whatever")) do but i know that getElementsByType have only few element types declared inside MTA. Could u help me find another way? Link to comment
MTA Team botder Posted April 28, 2015 MTA Team Share Posted April 28, 2015 You can use getElementsByType for your custom elements. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now