Jump to content

[HELP]GRIDLIST SPAM


HUNGRY:3

Recommended Posts

hello i'm trying to get the all of the player guns and put it in the gridlist

but when i add another gun it doesn't go in

code:

  
client = getLocalPlayer() 
  
function addwep() 
local invrow = guiGridListAddRow(gridlist) 
local wep = getPedWeapon(client) 
if (wep) then 
guiGridListSetItemText ( gridlist, invrow, invcol, getWeaponNameFromID(wep), false, false ) 
else 
if guiGridListGetItemText (gridlist, invrow, invcol) == getWeaponNameFromID(wep) then 
guiGridListRemoveRow(gridlist,getWeaponNameFromID(wep)) 
end 
end 
end 
addEventHandler ( "onClientResourceStart", getRootElement(), addwep ) 

Edited by Guest
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...