Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. Okay EDIT I made this but i wanted to set to follow the player who spawned the bot and dont kill him, function Spawnbot1 (source) local x,y,z = getElementPosition (source) local rot = 90 local skin = 284 local interior = 0 local dimension = 0 local weapon =22 local team = getTeamFromName("Admin") local mode = "following" local modesubject = getLocalPlayer() call (getResourceFromName("slothbot"), "spawnBot", x+2, y, z+1, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler("spawnbot", Spawnbot1)
  2. I read it but i didnt understand how to work with
  3. -.Paradox.-

    Slothbot

    Hello, is there a tutorial about how to create bots and set to follow a specified player? thanks
  4. -.Paradox.-

    Phone

    Hello, i need help with some functions and events i can use to create a phone system, like the C#T server phone thanks for help.
  5. Use getControlState getPedTarget getPedWeapon
  6. Im talking about player can play will downloading
  7. I saw this script but didn't worked function () exports.download:downloadFile("infernus.txd", "infernus.txd", 411) exports.download:downloadFile("infernus.dff", "infernus.dff", 411) end addEventHandler("onClientDownloadComplete", getRootElement(), function (theFile) if theFile == "infernus.txd" then local theTXD = engineLoadTXD ("infernus.txd", 411 ) engineImportTXD ( theTXD, 411 ) if theFile == "infernus.dff" then local theTXD = engineLoadTXD ("infernus.dff", 411 ) engineImportTXD ( theTXD, 411 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
  8. -.Paradox.-

    Question

    Hello, is there a way to compress the client download?
  9. Idk if shader can do it, but you culd try my script, replace the ["name"] with the name of the file you want to replace(without txd) and next to it write the file id(clothes id) https://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs here is the id's of clothing components. you can add more lines of ["name"] = id. textures = { ["name"] = id, ["name"] = id, ["name"] = id, ["name"] = id, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD(cloth..".txd") engineImportTXD(txd, id) end end addEventHandler("onClientResourceStart", resourceRoot, replaceClothes)
  10. https://community.multitheftauto.com/index.php?p= ... ls&id=7970
  11. Tried but I crashed it, so I tried this way.
  12. Oh sorry, i mean i don't know a lot about those stuffs can i post you my code? The problem is i didn't maked it with xml, i used getPedStat for every row, so i need help. Here is the code: SOLVED
  13. Got a little problem i want refresh the stats every 1 second, what i have to do?
  14. Hello, i maked a panel that get ped stats like the one in freeroam resource and i want it to work with xml, i want really to make it myself but idk about xml functions or how to use, thanks for help. GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(834, 170, 299, 463, "Stat panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 27, 279, 395, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Stat", 0.4) guiGridListAddColumn(GUIEditor.gridlist[1], "Value", 0.4) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "AK-47", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "Deagle", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "M4", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "MP5", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "Pistol", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "Sawnoff shotgun", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "Shotgun", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "Silenced pistol", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "Sniper rifle", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "Spaz-12", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 2, "Value", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "Uzi", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 10, 2, "Value", false, false) GUIEditor.button[1] = guiCreateButton(113, 429, 45, 20, "close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible(GUIEditor.window[1], false) showCursor(false) function enableStatPanel() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey ( "H","down", enableStatPanel ) My XML Format
  15. The first one show only the flag.
×
×
  • Create New...