Jump to content


  • Posts

  • Joined

  • Last visited


About xXMADEXx

  • Birthday 18/06/1999


  • Gang
    The Streets
  • Location
    A computer
  • Occupation
  • Interests
    Erm, I like computers or something along those lines?

Recent Profile Visitors

2,912 profile views

xXMADEXx's Achievements


Shooter (40/54)



  1. Well lines 213-274 is where it's drawing the players. You could go in there and just use getTeamColor.
  2. You need to create another window with a grid list on it (that'll be used for the SMS messages popup.) You can use onClientGUIDoubleClick on the players grid, get the selected player then show the popup, then get the messages between the players (should be stored in a client-side table) and add those to the grid list.
  3. You can put all the kills into a table with the account name and use table.sort.
  4. What exactly do you need to sync the timers for? There should be a better, more efficient way than trying to sync a client and server timer. If you really need to, you could just use either triggerClientEvent/triggerServerEvent every second to sync.
  5. You can see how I did it here: https://github.com/braydondavis/Nerd-Ga ... hicles.lua Use onClientPreRender instead, it will make it smoother.
  6. No, there's not a way to create fake players. You can create fake players in the scoreboard obviously, but there isn't a way to trick the server browser with more players.
  7. If it's a login done in HTML, you could probably use JavaScript cookies.
  8. Try putting the toJSON in single quotes. local database = dbConnect("sqlite", "parchement.db") dbExec(database, "CREATE TABLE IF NOT EXISTS parchement (account_name TEXT, parchement TEXT DEFAULT '"..toJSON({}).."')") I'm honestly not sure if this will fix the problem though.
  9. As Noki said, each language is like a toolbox with its own purpose. However, I would chose Java over C++ just for the simple reason that it is a fairly easy language to learn and write in, especially compared to C++, and because Java is cross platform compatible.
  10. Yes... As NeverGiveup said, read teh imageData parameter.
  11. Mine does this too. Not too big of a deal, but yeah it is kind of annoying. I'd recommend you post this in the server support section so you can get some actual help from the developers.
  12. Your script probably has an error in it somewhere. Try to run it without it being compiled and see if it works.
  13. xXMADEXx

    admin panel

    The vehicles actually don't have a "list." The script just uses a loop to get all the vehicle models. Go into admin\client\gui\admin_main.lua. There's a for loop, should be lines ~126-130: for i = 400, 611 do if ( getVehicleNameFromModel ( i ) ~= "" ) then table.insert( vehicleNames, { model = i, name = getVehicleNameFromModel ( i ) } ) end end You can write if statements to check the vehicle model and tell the script if it should add it or not.
  14. Could you post the code, please?
  15. Ok, so you're looking for something like this, however it's not going to work unless you have the following variables defined somewhere else in the script: - on - Ativo - off - Garagem function guiPart() f1 = guiCreateButton(logX-recX/2+(recX-cancelX-okX+375), logY+fAltUser*2+sep*3-47,okX-70, recY-375, "", false) f2 = guiCreateButton(logX-recX/2+(recX-cancelX-okX+375), logY+fAltUser*2+sep*3-2,okX-70, recY-375, "F2", false) f3 = guiCreateButton(logX-recX/2+(recX-cancelX-okX+375), logY+fAltUser*2+sep*3+43,okX-70, recY-375, "F2", false) guiSetAlpha ( f1, 0 ) guiSetAlpha ( f2, 0 ) guiSetAlpha ( f3, 0 ) end function MouseClick ( button, state ) if ( button == "left" ) then if ( source == f1 ) then triggerServerEvent("Ativo", getLocalPlayer(), getLocalPlayer(), Ativo); ori9 = on; else triggerServerEvent("Garagem", getLocalPlayer(), getLocalPlayer(), Garagem); ori9 = off; end end end addEventHandler ( "onClientGUIClick", root, MouseClick );
  • Create New...