Jump to content

How can i animate a gui?


Recommended Posts

It works perfect like this;

  
function updateLocations ( location ) 
for i=0, guiGridListGetRowCount(locationsList)do 
    if isTextInGridList(locationsList, 1, location) == false then 
    guiGridListSetItemText ( locationsList, guiGridListAddRow ( locationsList ), 1, location, false, false )  
    end 
end 
end 
  

With the function he added above, Thanks Jaysds1 and karthik184 awesome guys :D

Link to comment
  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Dunno if this will be useful or not:
function isTextInGridList(gridlist,column,text) 
    if gridlist and column and text then 
        local rows = (guiGridListGetRowCount(gridlist) or 1) 
        for row = 0,rows do 
            if text == guiGridListGetItemText(gridlist, row, column) then 
                return true 
            end 
        end 
        return false 
    end 
    return false 
end 

Usage:

isTextInGridList(locationsList, 1, "myText") 
-- returns true if text was found otherwise false 

Add to https://wiki.multitheftauto.com/wiki/Useful_Functions list.

Link to comment

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