Best-Killer Posted November 4, 2016 Share Posted November 4, 2016 owner of this script : https://community.multitheftauto.com/index.php?p=resources&s=details&id=10589 ,, used GuiGridListGetItemText without using GuiGridListGetSeleceted Item ! can anyone tell me how he did it please ? Link to comment
MIKI785 Posted November 4, 2016 Share Posted November 4, 2016 guiGridListGetItemText's arguments are the gridlist, the row ID and the column ID (they start at 1), so you can just supply those numbers without getting them from guiGridListGetSelectedItem. But if you want to get the text of an item the player clicked on (selected) then you have to use that function. Link to comment
Best-Killer Posted November 4, 2016 Author Share Posted November 4, 2016 Thx Dude ^^ you helped me too much i got it fixed ^^ can you tell me other thing now pls ? if the gridlist have 2 rows or 5 how to use guiGridListGetItemText To get Them all ? the 2 rows or 5 rows Link to comment
Walid Posted November 5, 2016 Share Posted November 5, 2016 10 hours ago, Best-Killer said: Thx Dude ^^ you helped me too much i got it fixed ^^ can you tell me other thing now pls ? if the gridlist have 2 rows or 5 how to use guiGridListGetItemText To get Them all ? the 2 rows or 5 rows All what you need is: guiGridListSetSelectionMode, guiGridListGetSelectedItems. Link to comment
Best-Killer Posted November 5, 2016 Author Share Posted November 5, 2016 but in ivse script he getitemtext without use guiGridListSetSelectionMode guiGridListGetSelectedItems. Link to comment
Walid Posted November 5, 2016 Share Posted November 5, 2016 6 minutes ago, Best-Killer said: but in ivse script he getitemtext without use guiGridListSetSelectionMode guiGridListGetSelectedItems. How did you know that he didn't use guiGridListGetItemText ??? Link to comment
Best-Killer Posted November 5, 2016 Author Share Posted November 5, 2016 he used guiGridListGetItemText but didn't used guiGridListSetSelectionMode guiGridListGetSelectedItems. Link to comment
Walid Posted November 5, 2016 Share Posted November 5, 2016 (edited) 1 minute ago, Best-Killer said: he used guiGridListGetItemText but didn't used guiGridListSetSelectionMode guiGridListGetSelectedItems. :3 How did you know ?? i think you need to undrestand the resource before you start asking questions. Edited November 5, 2016 by Walid 1 Link to comment
iPrestege Posted November 5, 2016 Share Posted November 5, 2016 5 minutes ago, Walid said: :3 How did you know ?? i think you need to undrestand the resource before you start asking questions. + It's a compiled resource unless you decompile it and if you decompile it then i think you are just a pathetic. Link to comment
Best-Killer Posted November 5, 2016 Author Share Posted November 5, 2016 35 minutes ago, Walid said: :3 How did you know ?? i think you need to undrestand the resource before you start asking questions. i'll try to do it by myself as we talked in pm then i'll come show you how is it without guiGridListSetSelectionMode guiGridListGetSelectedItems. 27 minutes ago, iPrestege said: + It's a compiled resource unless you decompile it and if you decompile it then i think you are just a pathetic. lol did you see me trying to decomplie it or smth ?? hhhhh so funny i'm not good scripter and i'm learning also i'm making script and i see my self need use guiGridListGetItemText without guiGridListSetSelectionMode guiGridListGetSelectedItems. i didn't see any example about in in forum or wiki but i see it in his script lol and i asked here and i pmed him i'll wait his answer , any thing else i'll keep trying to do it by myself Link to comment
Walid Posted November 5, 2016 Share Posted November 5, 2016 24 minutes ago, Best-Killer said: i'll try to do it by myself as we talked in pm then i'll come show you how is it without guiGridListSetSelectionMode guiGridListGetSelectedItems. Show me ??? man as i told you if you want to use guiGridListGetItemText without using guiGridListGetSelectedItem, you need to added the row index and the colmun index. Anyways if you want to added the vehicle to the grid list , all what you need is: onClientGUIComboBoxAccepted: This event is called when a ComboBox get accepted guiComboBoxGetSelected : This function returns the index of the selected combobox item guiComboBoxGetItemText: This function retrieves the text from a specific combobox item. getVehicleModelFromName: This function retrieves the model ID of a vehicle as an integer value from its name. Link to comment
AJXB Posted November 5, 2016 Share Posted November 5, 2016 Bloody hell.. Alright, as far as I remember (I don't have the source code for this), I didn't use guiGridListGetItemText, but I used guiGridListGetSeleceted, I didn't use GetItemText because I used an index for the selected row, that's what I remember, unfortunately, there is not way to decompile the code to find out exactly what I've done. 1 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