Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Tooltip

    You use freeroam?
  2. TAPL

    Tooltip

    Try this: setElementData(getControl(wndMain, "kill"), "tooltip-text", "انتحآر", false) If it doesn't work try this: setElementData(getControl(wndMain, "killMe"), "tooltip-text", "انتحآر", false)
  3. function pSet(source, commandName, posX, posY, posZ) local posX, posY, posZ = tonumber(posX), tonumber(posY), tonumber(posZ) if posX and posY and posZ then setElementPosition(source, posX, posY, posZ) else outputChatBox("Use: /setpos x,y,z", source, 255, 0, 0) end end addCommandHandler("setpos", pSet)
  4. Thanks You're welcome.
  5. Fixed in pm.
  6. TAPL

    closed

    You're welcome.
  7. TAPL

    closed

    You're welcome.
  8. You're welcome.
  9. This really really really make no sense you don't even know the basics.
  10. debugscrpit 3?
  11. So there no teams on the scoreboard?
  12. (math.floor(YOUR-NUMBER-HERE * 10)/10)
  13. Uhm i will repeat same sentence but this time for the server side. This is impossible, please make sure you have copied full server side code from line 1 till line 17.
  14. (math.floor(YOUR-NUMBER-HERE * 10)/10) Example: (math.floor(0.1541515616 * 10)/10) --> 0.1
  15. TAPL

    fetchRemote

    addEventHandler("onResourceStart", getRootElement(), function (resource) local resourceName = getResourceName(resource) if ( string.find(resourceName, "ZA-") ) then local file = xmlLoadFile(":"..resourceName.."/meta.xml") for i, node in ipairs (xmlNodeGetChildren(file)) do if (xmlNodeGetName(node) == "script") then local src = xmlNodeGetAttribute(node, "src") if (fetchRemote("https://luac.multitheftauto.com/?compile=1&debug=0&blockdecompile=1&encrypt=1", function(data) fileSave(":"..resourceName.."/"..src.."c", data) end, fileLoad(":"..resourceName.."/"..src), true)) then outputDebugString(""..resourceName.."/"..src..": Successfully compiled") else outputDebugString(""..resourceName.."/"..src..": Failed to compiled", 3) end end end end end ) function fileLoad(path) local File = fileOpen(path, true) if File then local data = fileRead(File, 500000000) fileClose(File) return data end end function fileSave(path, data) local File = fileCreate(path) if File then fileWrite(File, data) fileClose(File) end end
  16. This is impossible, please make sure you have copied full client side code from line 1 till line 47. You don't need to edit anything in the login panel.
  17. طعمية اية ؟؟؟ meta.xml يقول لك اطرح الي بالملف
  18. نفس الطلب ثلاث مرات مثير للأهتمام
  19. TAPL

    closed

    Work with me, make sure you copied full code from line 1 till line 8.
  20. See if this work. Server Side: createTeam ("F.B.I", 0, 255, 0) createTeam ("Resistance", 255, 0, 0) addEvent("setTeam", true) addEventHandler("setTeam", root, function(team) if team then spawnPlayer(source, x, y, z, 0, 0, 0, 0, team) setCameraTarget(source) triggerClientEvent(source, "onSelectTeam", source) end end) addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "onLogin", source) end) Client Side: addEvent("onLogin", true) addEventHandler("onLogin", root, function() GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(847, 254, 157, 46, ">>", false) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(376, 254, 157, 46, "<<", false) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0000FF") fadeCamera(true, 5) showCursor(true) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) function setCamera() dxDrawText("Resistance", 764, 141, 1004, 191, tocolor(255, 0, 0, 255), 1.30, "bankgothic", "center", "top", false, false, true, false, false) dxDrawImage(845, 191, 68, 63, ":Class/class/Classicon_warrior.png", 333, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("F.B.I", 466, 141, 706, 190, tocolor(0, 0, 255, 255), 1.30, "bankgothic", "left", "top", false, false, true, false, false) dxDrawImage(466, 191, 67, 64, ":Class/class/Classicon_psyron.png", 33, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("Click on the team you want to join!", 533, 22, 847, 141, tocolor(0, 255, 0, 255), 1.00, "bankgothic", "left", "top", false, true, true, false, false) end addEventHandler("onClientRender", getRootElement(), setCamera) function imageC() triggerServerEvent("setTeam", localPlayer, getTeamFromName("Resistance")) end addEventHandler("onClientGUIClick", GUIEditor.button[1], imageC, false) function imageTest() triggerServerEvent("setTeam", localPlayer, getTeamFromName("F.B.I")) end addEventHandler("onClientGUIClick", GUIEditor.button[2], imageTest, false) addEvent("onSelectTeam", true) addEventHandler("onSelectTeam", root, function() removeEventHandler("onClientRender", getRootElement(), setCamera) destroyElement(GUIEditor.button[1]) destroyElement(GUIEditor.button[2]) showCursor(false) end) end)
  21. TAPL

    closed

    Use table easier. disAllowed = {[34] = true, [43] = true, [35] = true} bindKey("mouse2", "both", function(_, state) if not (disAllowed[getPedWeapon(localPlayer)]) then guiSetVisible(myImage, (state == "down" and true or false)) end end)
  22. Client Side: addEventHandler("onClientGUIClick", root, function() if source == mgrid then local name = guiGridListGetItemText(mgrid, guiGridListGetSelectedItem (mgrid), 1) if name and name ~= "" then if isTimer(tim) then killTimer(tim) end tim = setTimer(function(name) local player = getPlayerFromName(name) if isElement(player) then guiSetText(ping, tostring(getPlayerPing(player)) else if isTimer(tim) then killTimer(tim) end end end, 1000, 0, name) else if isTimer(tim) then killTimer(tim) end end end end)
  23. What you post make no sense, i don't even see where is getPlayerPing.
×
×
  • Create New...