Jump to content

[HELP] guiCreateGridList sort among themselves?


PlayAkoya

Recommended Posts

Hi im from Germany,

i need your help, with my problem.

dee64c-1445805780.png

I would like the sign to each other are all dollar $.

The prices are all under one another as I do that?

SexShopGridlist = guiCreateGridList(10, 136, 261, 238, false, getSexShopGUI) 
            getSexID = guiGridListAddColumn(SexShopGridlist, "ID", 0.10) 
            getSexProduktname = guiGridListAddColumn(SexShopGridlist, "Produkt", 0.64) 
            getSexPrice = guiGridListAddColumn(SexShopGridlist, "Preis", 0.18) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "1", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Durex Kondom-Packung 12St", false, false)       
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, "19.95$", false, false) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "2", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Durex Kondom-Packung 36St", false, false)       
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, " 54.99$", false, false) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "3", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Durex Gleitgel 50ml", false, false)         
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, "  9.99$", false, false) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "4", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Taschen Vagina", false, false)      
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, "129.95$", false, false) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "5", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Kleiner weißer Dildo", false, false)       
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, " 29.95$", false, false) 
         
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "6", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "Großer weißer Dildo", false, false)       
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, " 89.99$", false, false) 
             
            local row = guiGridListAddRow(SexShopGridlist) 
            guiGridListSetItemText(SexShopGridlist, row, getSexID, "7", false, false)        
            guiGridListSetItemText(SexShopGridlist, row, getSexProduktname, "XXL lila Dildo", false, false)      
            guiGridListSetItemText(SexShopGridlist, row, getSexPrice, "119.95$", false, false) 

I've tried with spaces but do not get it all the dollar signs left standing out among themselves! :cry:

Sorry for my bad English.

Link to comment

Umm... example

addEvent("Gridlist", true) 
addEventHandler("Gridlist", root, 
function(Aristates) 
-- here You'r Code. 
end 
) 

  
  
-- I have not tested 
function(player, Money) 
Aristates = "blablablabla" 
Amount = { 
["19.55€" ]=true 
} 
if Amount[Money] then 
takePlayerMoney(player, 19) 
outputChatBox("You Purchased Durex "..Amount.." Nick:"..getPlayerName(source).."") 
triggerClientEvent( client,"Gridlist", Aristates, client ) 
end 

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