Jump to content

Khalil

Members
  • Content Count

    41
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Khalil

  • Rank
    Rat

Details

  • Gang
    RRC
  1. Khalil

    How to do ?

    No. Use this to show the GUI bindKey ( "--button--", "down", showGUI ) Then this to hide it bindKey ( "--button--", "up", hideGUI )
  2. It is already defined, clientside.
  3. localPlayer is clientsided, use source.
  4. Client: theMarker = createMarker(2144.6176757813,-1688.2725830078,14.0859375, "cylinder", 2, 204, 0, 204,170) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow((x-w)/2,(y-h)/2,w,h,t,false) end drugWindow = guiMyCwindow(301,250,"Buy Drugs") guiSetVisible(drugWindow, false) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,drugWindow) GUIEditor_Button[1] = guiCreateButton(179,200,110,36,"Cancel",false,drugWindow
  5. oh lol that was a mistake.. so I have this now: function search() for index, player in ipairs ( getElementsByType ( 'player' ) ) do if ( player ~= localPlayer ) then local search = guiGetText(searchBar) string.match(index,search) end end end addEventHandler("onClientGUIChanged",searchBar,search)
  6. Ok so, I have this: function search() for index, player in ipairs ( getElementsByType ( 'player' ) ) do if ( player ~= localPlayer ) then local item = guiGridListGetSelectedItem(gridList) local player = guiGridListGetItemText(gridList,item,0) local search = guiGetText(searchBar) string.match(player,search) end end end addEventHandler("onClientGUIChanged",searchBar,search) How do I remove all the other rows and just have the matched player(s)?
  7. How exactly do I do that?
  8. How do I make it like lil_Toady's admin panel? I made a gridlist, got all the server players in there, and added an editbox.
  9. Works fine thanks Also, when a player leaves the server, the gridlist should automatically refresh, how do I do that?
  10. Hello. I made a gridlist to get all players in the server. I do the command to open the gui and it looks fine. I close the gui, and open it again, then I find three of the same player on the gridlist, I don't know what to do, here's the code: function showGUI ( ) local tostate = not guiGetVisible ( win ) guiSetVisible ( win, tostate ) showCursor ( tostate ) for index, player in ipairs ( getElementsByType ( 'player' ) ) do if ( player ~= localPlayer ) then guiGridListSetItemText ( gridList, guiGridListAddRow ( gridList ), 1, getPlayerName ( player ), false, f
  11. Whatever I do, whenever I use getZoneName, only the zone appears and not the city. local x,y,z = getElementPosition (lp) location = getZoneName ( x, y, z, false) guiSetText(memoThree,location) I even changed location = getZoneName ( x, y, z, false) to location = getZoneName ( x, y, z, true) But still, the city isn't put in the memo, just the zone...
  12. local x,y,z = getElementPosition (lp) guiSetText(memo,math.round(x,3)..","..math.round(y,3)..","..math.round(z,3)) Debug Script says: "attempt to call field 'round' a nil value"
  13. Is it possible to disable clicking on a gridlist's column title?
  14. local lp = getLocalPlayer ( ) local marker = createMarker ( 2043, 1557, 10, "cylinder", 2.0, 0, 0, 255, 0 ) local ped = createPed ( 59, 2043, 1557, 10 ) createBlipAttachedTo ( marker, 25 ) sx, sy = guiGetScreenSize () win = guiCreateWindow(282, 212, 462, 285, "Drug Dealer Job Description", false) guiWindowSetSizable(win, false) buttonCancel = guiCreateButton(49, 236, 119, 39, "Cancel", false, win) buttonAccept = guiCreateButton(270, 236, 119, 39, "Accept", false, win) memoOne = guiCreateMemo(9, 24, 443, 206, "Spawn a boat and go to the marker on your map. Buy some drugs and go to the
×
×
  • Create New...