Piorun Posted December 27, 2013 Posted December 27, 2013 Hi, Is this possible to do something with ALL visible GUI elements? I mean i need something to loop 'for'.
Piorun Posted December 27, 2013 Author 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
Castillo Posted December 28, 2013 Posted December 28, 2013 You can use the function: getResourceGUIElement with getElementChildren to obtain the GUI elements of a resource.
Stanley Sathler Posted December 28, 2013 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.
TAPL Posted December 28, 2013 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).
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