Fist
Members-
Posts
433 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Fist
-
not tested function outPutKillerName(source, killer) outputChatBox( source.." died from hands of "..killer ) end addEventHandler( "onPlayerWasted", getRootElement(), outPutKillerName )
-
Hello. I have kinda problem with gridlist im using code below to get selected gridlist and if any gridlist is selected then it displays info about it, from table waht i made. but it kinda works, but doesnt correctly, it only gets last item in my table what i made. if (guiGridListGetSelectedItem( itemGridlist) == -1) then guiSetText( label1, "Please select an item" ) guiSetText( label2, "") else guiSetText( label1, "item name here .....") guiSetText( label2, "blalbla every item info here")") end PROBLEM SOLVED!!!
-
u know that u can find this gamemode for free @google?
-
WARNING: THIS RESOURCE DOES NOT HAVE ANY ACL PERMISSION! that means any one can open panel and teleport to any vehicle. How it looks like: This was my first script ever, i made it like 1-2weeks ago. And now i decided it to share to everyone. This script is useful for DayZ servers to find vehicles. Download link: https://community.multitheftauto.com/ind ... s&id=12087
-
Solved. i used functions below. table.insert table.sort
-
So, you want to get all online players in a gridlist and make them in order based on their score or what? Excalty!
-
Calm down? You didn't explain your problem as well, after all im just trying to help you so act nice Sorry, but youre 2nd guy who already doesnt read topic correct.
-
why u giving me this? I NEED HOW I CAN MAKE SO IT SORTS PLAYERS BY SCORE. Read damn topic.
-
What u are giving me? lol, you cant sort gridlist with those functions.
-
I mean, how i can sort items in specified column by script ? So it shows everyone in gridlist top player which has highest score.
-
lol, there is no Arguments u can sort items in it.
-
Hello! I wonder how i can make so gridlist sorts those items what was made, by specified column ?
-
That would not fix my problem, i need exaclty what destroys function, cause i need it so in background doesnt run a useless gui when its not used.
-
Hello everyone. Just askin or it is possible to destroy function? Like if key Z is executed and it executes EXAMPLE function and if i press again Z it destroys that function, and over again same process.
-
Thanks so much. Cause i like guis scoreboard better.
-
u mean like this? so if yes still it doesnt show anything. players = getElementsByType( "player" ) function updateGUI() for i,p in ipairs(players) do local playerName = getPlayerName(p) local playerPing = getPlayerPing(p) local row = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, #players, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 2, playerName, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 3, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 4, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 5, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 6, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 7, playerPing, false, false) end end setTimer(guiGridListClear, 50, 0, updateGUI)
-
I tried to use it, but still nothing. After i add it its just disappears at all screen: http://prntscr.com/8ejizz function updateGUI() players = getElementsByType( "player" ) for i,p in ipairs(players) do local playerName = getPlayerName(p) local playerPing = getPlayerPing(p) local row = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, #players, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 2, playerName, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 3, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 4, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 5, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 6, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 7, playerPing, false, false) end end setTimer(guiGridListClear, 50, 0, updateGUI)
-
Hello again! I just recently made GUI Scoreboard but i have problem im using setTimer to refresh row of client info on each row but when im using setTimer it makes infinity rows of each player, Looks like this: http://prntscr.com/8ej7rn Thanks for your time! code (CLIENT) function updateGUI() players = getElementsByType( "player" ) for i,p in ipairs(players) do local playerName = getPlayerName(p) local playerPing = getPlayerPing(p) local row = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, #players, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 2, playerName, false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 3, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 4, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 5, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 6, "nill", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 7, playerPing, false, false) end end setTimer( updateGUI, 50, 0 )
-
@Citizen Thank you so much. <3 I really appreciate u explained me everyting about trigger events.
-
still nothing code: client: function recieveServerInfo(serverName) GUIEditor.label[1] = guiCreateLabel(13, 2, 521, 15, serverName, false, GUIEditor.gridlist[1]) end addEvent("recieveServerInfo", true) addEventHandler( "recieveServerInfo", root, recieveServerInfo ) server: function getServerInfo() local serverName = getServerName() triggerClientEvent("recieveServerInfo", root, serverName) end addEventHandler( "onResourceStart", resourceRoot, getServerInfo )
-
getServerName() is only server function.
-
Hello! I have problem with getting local variable from server event. my code is like this: Thanks. ^^ CLIENT: triggerServerEvent( "getServerInfo", root, localPlayer, serverName) GUIEditor.label[1] = guiCreateLabel(13, 2, 521, 15, serverName, false, GUIEditor.gridlist[1]) SERVER: function getServerInfo(serverName) local serverName = getServerName() end addEvent( "getServerInfo", true ) addEventHandler( "getServerInfo", root, getServerInfo )