Piorun Posted December 27, 2013 Share Posted December 27, 2013 Hi, Is this possible to do something with ALL visible GUI elements? I mean i need something to loop 'for'. Link to comment
TAPL Posted December 27, 2013 Share Posted December 27, 2013 getElementsByType guiGetVisible Link to comment
Piorun Posted December 27, 2013 Author Share Posted December 27, 2013 Ye, but getElementsByType supports only: "player": A player connected to the server "ped": A ped "water": A water polygon "sound": A playing sound "vehicle": A vehicle "object": An object "pickup": A pickup "marker": A marker "colshape": A collision shape "blip": A blip "radararea": A radar area "team": A team "spawnpoint": A spawnpoint "remoteclient": A remote client connected to the server "console": The server Console "projectile": A projectile Link to comment
Castillo Posted December 28, 2013 Share Posted December 28, 2013 You can use the function: getResourceGUIElement with getElementChildren to obtain the GUI elements of a resource. Link to comment
Piorun Posted December 28, 2013 Author Share Posted December 28, 2013 Well .. ok thanks Link to comment
Stanley Sathler Posted December 28, 2013 Share Posted December 28, 2013 If I'm not wrong, you can use getElementsByType("gui") or something like this. I don't remember exactly, but I think that already saw this. Link to comment
TAPL Posted December 28, 2013 Share Posted December 28, 2013 Yes there is class type for each GUI type. https://wiki.multitheftauto.com/wiki/GUI_widgets You need to create a table and insert the class of all GUI types and loop the table and use getElementsByType (loop inside loop). 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