Jump to content

Help ME


Recommended Posts

Hi guys

I Create Grid List , guiGridListAddRow , guiGridListSetItemText help me to show name maps race

scren shot

1336244061441.png

Code

showCursor ( true ) 
myWindow = guiCreateWindow (300,200,600,430, "Welcome To Your UserPanel,", false ) 
tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) 
tabMap = guiCreateTab( "Maps", tabPanel ) 
tabMaps = guiCreateLabel( 380, 10, 300, 50, "Search Maps:", false , tabMap) 
guiLabelSetColor(tabMaps,0,255,0) 
mapssearch = guiCreateEdit(377,30,200,29,"",false,tabMap) 
mapspriceLabel = guiCreateLabel(380,60,320,18,"Price : 4000$",false,tabMap) 
guiLabelSetColor(mapspriceLabel,255,150,0) 
refreshmapButton = guiCreateButton(375,80,200,30,"Refresh Map List",false,tabMap) 
mapsbyLabel = guiCreateLabel(380,120,320,18,"UserPanel By : MiX#",false,tabMap) 
guiCreateStaticImage (400,160,119,100,"img/logo.png",false,tabMap ) 
buynextButton = guiCreateButton(375,300,200,30,"Buy As Next Map",false,tabMap) 
local maplist = guiCreateGridList ( 5, 5, 350, 340, false , tabMap) 
local column = guiGridListAddColumn( maplist, "Name Map :", 0.85 ) 
local row = guiGridListAddRow ( maplist ) 
guiGridListSetItemText ( maplist, row, 1, tostring ( getResourceInfo ( map, 'name' ) ), false, false ) 

Link to comment

MiX u need use 'triggerClientEvent' or 'triggerServerEvent' and create a event with it 'addEvent' example

sv-side(EXAMPLE)

addEvent("example",true) 
addEventHandler("example", getRootElement(),  
function() 
----Here the complement-------- 
end 
) 

CL-SIDE(eXAMPLE)

addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()),  
function() 
triggerServerEvent("example", getLocalPlayer()) 
end 
) 

---A example ;)

Link to comment

this Client.lua

showCursor ( true ) 
myWindow = guiCreateWindow (300,200,600,430, "Welcome To Your UserPanel,", false ) 
tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) 
tabMap = guiCreateTab( "Maps", tabPanel ) 
tabMaps = guiCreateLabel( 380, 10, 300, 50, "Search Maps:", false , tabMap) 
guiLabelSetColor(tabMaps,0,255,0) 
mapssearch = guiCreateEdit(377,30,200,29,"",false,tabMap) 
mapspriceLabel = guiCreateLabel(380,60,320,18,"Price : 4000$",false,tabMap) 
guiLabelSetColor(mapspriceLabel,255,150,0) 
refreshmapButton = guiCreateButton(375,80,200,30,"Refresh Map List",false,tabMap) 
mapsbyLabel = guiCreateLabel(380,120,320,18,"UserPanel By : MiX#",false,tabMap) 
guiCreateStaticImage (400,160,119,100,"img/logo.png",false,tabMap ) 
buynextButton = guiCreateButton(375,300,200,30,"Buy As Next Map",false,tabMap) 
local maplist = guiCreateGridList ( 5, 5, 350, 340, false , tabMap) 
local column = guiGridListAddColumn( maplist, "Name Map :", 0.85 ) 
local row = guiGridListAddRow ( maplist ) 
guiGridListSetItemText ( maplist, row, 1, tostring ( getResourceInfo ( map, 'name' ) ), false, false ) 
function greetingCommand ( commandName ) 
    triggerServerEvent ( "onGreeting", getLocalPlayer(), "Hello World!" )  
    -- getLocalPlayer instead of getRootElement makes the client player the 'source' on the server function, eliminating the need for an additional player argument to be transferred. 
end 
addCommandHandler ( "greet", greetingCommand ) 
  
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), 
function() 
triggerServerEvent("example", getLocalPlayer()) 
end 
) 

This Server.lua

function greetingHandler ( message ) 
    outputChatBox ( "The client says: " .. message, source ) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 
  
addEvent("example",true) 
addEventHandler("example", getRootElement(), 
function() 
----Here the complement-------- 
end 
) 
  

i edit map not show in grid list

Link to comment

WHY DID YOU F*CK USE MY TEMPLATE OF USER PANEL? (what im made for wtf//serveR?)

9c14d22f7b9d.png

You account / serial [CCFAE1B38C11C9F7D26AA9577B12BFB3] and ip [188.54.70.37] is already banned on three servers, good luck

BE ORIGINAL

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...