Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. Just a typo it is actually like this if theFile == ":/test/cars/infernus.txd" and ":/test/cars/infernus.dff" then and both of them aren't working. xXMADEXx Nothing in debug..
  2. -.Paradox.-

    Download

    Hello guys, it's me again, I was searching in the forum for a way to download some files after client finish the current mta download, so I found this script https://community.multitheftauto.com/index.php?p= ... ls&id=3379 and I followed the instrunction but it isn't working, here is what I tried addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource ()), function () exports.download:downloadFile ("infernus.txd", "infernus.txd", 500) exports.download:downloadFile ("infernus.dff", "infernus.dff", 500) end) addEventHandler ("onClientDownloadComplete", getRootElement(), function (theFile) if theFile == ":/test/cars/infernus.txd" and theFile == ":/test/cars/infernus.dff" then local theTXD = engineLoadTXD ( theFile ) engineImportTXD ( theTXD, 411 ) local theDFF = engineLoadDFF ( theFile, 411 ) engineReplaceModel ( theDFF, 411) end end) P.S: I added both of the resources in admin acl, and I make sure that it's running, I hope somebody help, thanks.
  3. Hello, i'm trying to make a team panel, and set the selected player from "GUIEditor.gridlist[1]" to a team from "team.Gridlist[1]", and i want to set the player team by getting the team name from team.Gridlist[1], hope you can help me on this. Here is my code, thank you. SOLVED
  4. So, how I can use fetch remote to do this, 60mb turn into a smaller size, by cancelling the download of mods(cars,skins,weapons..) and download only the important files(Lua files format) is it possible?
  5. Thank you Cheez3D i will try it
  6. Hello, guys is it possible to spawn a vehicle by getting the vehicle Id from an edit box?
  7. Thanks i forgot the "s" in column
  8. Not working, btw here is a part of the code Solved
  9. -.Paradox.-

    Gridlist

    Hello guys can somebody see what's wrong here? I'm trying to fill the gridlist with teams, no errors Solved
  10. attempt to concatenate a boolean value
  11. I get "IP: false" in the label
  12. -.Paradox.-

    [Solved]

    Hello guys, can somebody see what's wrong here? attempt to call global 'getPlayerIP' (a nil value) SOLVED
  13. ')' expected to close '(' at line 85 near end I will send you my full code in pm
  14. I'm trying to output the selected player health into a label (like the Admin panel stuff)
  15. It's the only resource that Spawn Player after his death (i mean i'm using only this script, not play gamemode)
  16. Can i use GUIEditor.label[5] = guiCreateLabel(196, 225, 269, 15, "Health"..health, false, GUIEditor.window[1]) instead of guiSetText?
  17. Here is my code, and sorry i still don't know how to use it I want it to output the (Selected Gridlist player) health in this format GUIEditor.label[5] = guiCreateLabel(196, 225, 269, 15, "Health"..health, false, GUIEditor.window[1]) Can you help me if it's possible? function toggleStaff( source ) -- Show the panel if not guiGetVisible( GUIEditor.window[1] ) then showCursor ( true ) guiSetVisible( GUIEditor.window[1], true ) -- Update player list guiGridListClear ( GUIEditor.gridlist[1] ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2,GUIEditor.label[5] ~= "" and getElementHealth(localPlayer) or "", false, false) local itemtext = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), column ) local player = getPlayerFromName ( itemtext ) end end else showCursor ( false ) guiSetVisible( GUIEditor.window[1], false ) end end bindKey( "M", "down", toggleStaff ) addCommandHandler("staff", toggleStaff)
  18. I did not understand, I want to output player health into a label, i already looped players in the gridlist GUIEditor.label[1]
  19. Like this? But i think i need to create manually a row every player, can you see what's wrong with it please addEventHandler("onClientGUIClick", guiRoot, function(player) thePlayer = getPlayerFromName(source) if thePlayer then if source == GUIEditor.label[1] then local row = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if row == 0 then getElementHealth(thePlayer) end end end)
  20. Hello guys, I decided to make a Staff Panel, and it's working very good, The thing that i don't know how to use is how to get Selected Player info like example health and armor etc.. Thanks for help.
×
×
  • Create New...