Search the Community

Showing results for tags 'help'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Gang


Location


Occupation


Interests

Found 540 results

  1. koviak98

    [Help] Scoreboard

    Hi I started a few days ago lua scripting, my first project is an scoreboard. But i have an issue. I can't test my job, because don't have enought players on my custom server. I can join from my laptop, but this is just 2 player ( my pc and laptop). My question, that how can i set scoreboard bots (just a few, example 10) for the test?
  2. Superkaz3

    [HELP] Group Markers

    HELP!! I want a script that sets you in a group after you step on a marker. Something like this but with groups instead: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10457 thx.
  3. I want attach images to my message in default mta chat with a word, but i dont know how to attach the image to the message.. Anyone can help, and show me a example?
  4. queenshe

    [HELP] getTickCount

    How to add time limit? elseif source == can then if getPlayerMoney() >= 5000 then if getElementHealth(localPlayer) ~= 100 then setElementHealth(localPlayer,100) triggerServerEvent("TakeMoney",localPlayer) outputChatBox("#888888 5000$ #FFFFFFkarşılığında canın dolduruldu!",0,255,0,true) else outputChatBox("Canın zaten dolu!",255,0,0,true) end else outputChatBox("Paran yetmiyor!",255,0,0,true) end setTimer(guiSetPosition,50,5,canimg,g-132,2,false) setTimer(guiSetPosition,60,5,canimg,g-128,1,false) and elseif source == zirh then if getPlayerMoney() >= 5000 then if getPedArmor(localPlayer) ~= 100 then triggerServerEvent("setPlayerArmor",localPlayer) outputChatBox("#888888 5000$ #FFFFFFkarşılığında çelik yelek giydin!",0,255,0,true) else outputChatBox("Çelik yeleğin zaten sağlam!",255,0,0,true) end else outputChatBox("Paran yetmiyor!",255,0,0,true) end setTimer(guiSetPosition,50,5,zirhimg,g-132,2,false) setTimer(guiSetPosition,60,5,zirhimg,g-128,1,false)
  5. NickAge

    VF#4 JR9Z

    out of sudden got kicked with this message, now cant join any server at all. what do i do? http://tinypic.com/view.php?pic=zvdkhz&s=9#.XIbnWXxbk0Q
  6. i need solve for this problem i not use any hack or dll files last server play is vultaic i want help please can't join server local
  7. I need some help with inventory, i dont know how i can make, somebody can help me
  8. TheMarioTR

    [CRASH] MTA CRASH HELP!

    https://pastebin.mtasa.com/565504031 help please windows 7 32 bit https://i.imgyukle.com/2019/03/01/tkSNb.png
  9. Приветствие всех, кто открыл эту тему, недавно занял маппингом и столкнулся с такой проблемой, когда он сделал несколько локаций и возникла ошибка, пожалуйста, помогите разрешить проблему. Надеюсь на вашу помощь ОШИБКА: не удалось найти скрипт mapEditorScriptingExtension_s.lua для ресурса DayzUNG2 [15:35:58] Ошибка загрузки ресурса 'DayzUNG2' [15:35:58] ОШИБКА: Проблема с ресурсом: DayzUNG2; Не удалось найти скрипт mapEditorScriptingExtension_s.lua для ресурса DayzUNG2 [15:35:58] Ресурсы: 199 загружен, 1 сбой Ресурс 'DayzUNG2' изменен, перезагрузка ОШИБКА: Не удалось найти скрипт mapEditorScriptingExtension_s.lua для ресурса DayzUNG2 Загрузка ресурса 'DayzUNG2 ' ошибка ОШИБКА: проблема с ресурсом: DayzUNG2; Не удалось найти скрипт mapEditorScriptingExtension_s.lua для ресурса DayzUNG2 Ресурсы: 199 загружено, 1 не удалось
  10. Eu adicionei o SetelementFrozen a esse codigo so que o player continuar frezado mesmo dps de acaba o tempo do evento alguem sabe oque pode ser? function assaltar(thePlayer) givePlayerMoney(source,1200) setPlayerWantedLevel ( source, 5 ) setPedRotation(source, 270) setPedAnimation(source, "ped", "gang_gunstand", 10500, true, false, false, false) triggerClientEvent(root, alarmebanco, source ) setElementFrozen(source,true) triggerClientEvent(root, avisoroubo, root, thePlayer ) setElementPosition(Assalto, 3099.97, -3281.69, -0.5) setTimer(setElementPosition, 5000000, 1, Assalto, 1756.517578125,-1384.548828125,14.395313262939) end addEvent("assaltarbanco", true) addEventHandler("assaltarbanco", root, assaltar)
  11. Does anyone know how to create a free online mta server?, What is it said for and appears in the "Internet" part? Thank you Alguien sabe como crear un server de mta online gratis?, para que la gente se una y aparesca en la parte de "Internet"?. Gracias. Alguien sabe como crear un server de mta online gratis?, para que la gente se una y aparesca en la parte de "Internet"?. Gracias.
  12. queenshe

    [HELP] onPlayerJoin Spawn -.-'

    Hi, I can't put a new player on the server. I've deleted [gamemode]> [play]> play> broph.map but it still starts there. Plz help me function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) local theWeapon = getPedWeapon (source) local theWeapon1 = getPedWeapon (source, 1) local theWeapon2 = getPedWeapon (source, 2) local theWeapon3 = getPedWeapon (source, 3) local theWeapon4 = getPedWeapon (source, 4) local theWeapon5 = getPedWeapon (source, 5) local theWeapon6 = getPedWeapon (source, 6) local theWeapon7 = getPedWeapon (source, 7) local theWeapon8 = getPedWeapon (source, 8) local theWeapon9 = getPedWeapon (source, 9) local theWeapon10 = getPedWeapon (source, 10) local theWeapon11 = getPedWeapon (source, 11) local theWeapon12 = getPedWeapon (source, 12) local weaponAmmo = getPedTotalAmmo (source) local weaponAmmo1 = getPedTotalAmmo (source, 1) local weaponAmmo2 = getPedTotalAmmo (source, 2) local weaponAmmo3 = getPedTotalAmmo (source, 3) local weaponAmmo4 = getPedTotalAmmo (source, 4) local weaponAmmo5 = getPedTotalAmmo (source, 5) local weaponAmmo6 = getPedTotalAmmo (source, 6) local weaponAmmo7 = getPedTotalAmmo (source, 7) local weaponAmmo8 = getPedTotalAmmo (source, 8) local weaponAmmo9 = getPedTotalAmmo (source, 9) local weaponAmmo10 = getPedTotalAmmo (source, 10) local weaponAmmo11 = getPedTotalAmmo (source, 11) local weaponAmmo12 = getPedTotalAmmo (source, 12) local Skiin = getPedSkin (source) fadeCamera (source, false) setTimer (setElementModel, 2000, 1, source, Skiin, true) setTimer (spawnPlayer, 1000, 1, source, 208.53065490723, -1865.7003173828, 12.215625762939, 354.97918701172, getPedSkin (source), 0, 0, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) setTimer (giveWeapon, 2000, 1, source, theWeapon1, weaponAmmo1, true) setTimer (giveWeapon, 2000, 1, source, theWeapon2, weaponAmmo2, true) setTimer (giveWeapon, 2000, 1, source, theWeapon3, weaponAmmo3, true) setTimer (giveWeapon, 2000, 1, source, theWeapon4, weaponAmmo4, true) setTimer (giveWeapon, 2000, 1, source, theWeapon5, weaponAmmo5, true) setTimer (giveWeapon, 2000, 1, source, theWeapon6, weaponAmmo6, true) setTimer (giveWeapon, 2000, 1, source, theWeapon7, weaponAmmo7, true) setTimer (giveWeapon, 2000, 1, source, theWeapon8, weaponAmmo8, true) setTimer (giveWeapon, 2000, 1, source, theWeapon9, weaponAmmo9, true) setTimer (giveWeapon, 2000, 1, source, theWeapon10, weaponAmmo10, true) setTimer (giveWeapon, 2000, 1, source, theWeapon11, weaponAmmo11, true) setTimer (giveWeapon, 2000, 1, source, theWeapon12, weaponAmmo12, true) end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) function joinHandler() spawnPlayer(source, 208.53065490723, -1865.7003173828, 12.215625762939) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Script Test [ON]", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
  13. WorthlessCynomys

    [TXD ERROR] Unable to load

    Hello everyone! So I'm trying to model a lightbar on the LSPD police car. I use blender with the GTA SA script. My problem is with the TXD file. As long as I put only one of the textures in the TXD file, the game loads it and it is visible on the lightbar. Problems happen when I put more of the textures into the TXD file. When I try to load the TXD with 2 of the textures in it, I get the "Error Loading TXD" message. Wonder if anyone here knows why it's doing this. I use TXDWorkshop to assemble the TXD files, and I extracted the copcarla.txd file from the GTA3.img file and modified it. Thanks in advance!
  14. queenshe

    [HELP] DebugScreen?

    http://prntscr.com/msexkt client.lua local xml = xmlLoadFile ( "settings.xml" ) local nodeColor = xmlFindChild ( xml, "color", 0 ) local nodeFont = xmlFindChild ( xml, "font", 0 ) local nodeRealism = xmlFindChild ( xml, "realism", 0 ) local nodeStations = xmlFindChild ( xml, "stations", 0 ) local label = guiCreateLabel ( 0, 0, 1, 0.1, "Radyo Kapali", true ) guiLabelSetColor ( label, xmlNodeGetAttribute ( nodeColor, "r" ), xmlNodeGetAttribute ( nodeColor, "g" ), xmlNodeGetAttribute ( nodeColor, "b" ) ) guiLabelSetHorizontalAlign ( label, "center" ) guiSetFont ( label, xmlNodeGetValue ( nodeFont ) ) guiSetVisible ( label, false ) addEventHandler ( "onClientResourceStart", getResourceRootElement (), function () showPlayerHudComponent ( "radio", false ) setElementData ( getLocalPlayer (), "liveradio.radio", 0 ) for k, v in ipairs ( getElementsByType ( "vehicle" ) ) do setElementData ( v, "liveradio.radio0", false ) setElementData ( v, "liveradio.radio1", false ) setElementData ( v, "liveradio.radio2", false ) setElementData ( v, "liveradio.radio3", false ) end end ) addEventHandler ( "onClientResourceStop", getResourceRootElement (), function () showPlayerHudComponent ( "radio", true ) end ) addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer (), function ( vehicle, seat ) setRadioChannel ( 0 ) setElementData ( getLocalPlayer (), "liveradio.seat", seat ) if sound then if isElement ( sound ) then destroyElement ( sound ) end end if xmlNodeGetAttribute ( nodeRealism, "enabled" ) == "true" then if getElementData ( vehicle, "liveradio.radio0" ) then setElementData ( getLocalPlayer (), "liveradio.radio", getElementData ( vehicle, "liveradio.radio0" ) ) else for k, v in ipairs ( xmlNodeGetChildren ( nodeStations ) ) do setElementData ( getLocalPlayer (), "liveradio.radio", k ) end setElementData ( getLocalPlayer (), "liveradio.radio", math.random ( getElementData ( getLocalPlayer (), "liveradio.radio" ) ) ) setElementData ( vehicle, "liveradio.radio0", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( vehicle, "liveradio.radio1", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( vehicle, "liveradio.radio2", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( vehicle, "liveradio.radio3", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) end else if getElementData ( vehicle, "liveradio.radio" .. seat ) then setElementData ( getLocalPlayer (), "liveradio.radio", getElementData ( vehicle, "liveradio.radio" .. seat ) ) else for k, v in ipairs ( xmlNodeGetChildren ( nodeStations ) ) do setElementData ( getLocalPlayer (), "liveradio.radio", k ) end setElementData ( getLocalPlayer (), "liveradio.radio", math.random ( getElementData ( getLocalPlayer (), "liveradio.radio" ) ) ) setElementData ( vehicle, "liveradio.radio" .. seat, getElementData ( getLocalPlayer (), "liveradio.radio" ) ) end end local nodeStation = xmlFindChild ( nodeStations, "station", getElementData ( vehicle, "liveradio.radio" .. seat ) - 1 ) if nodeStation then local radioName = xmlNodeGetAttribute ( nodeStation, "name" ) local radioURL = xmlNodeGetAttribute ( nodeStation, "URL" ) sound = playSound ( radioURL ) guiSetText ( label, radioName ) guiSetVisible ( label, true ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) else guiSetText ( label, "Radyo Kapali" ) guiSetVisible ( label, true ) setElementData ( getLocalPlayer (), "liveradio.radio", 0 ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) end timerVehicle = setTimer ( function ( vehicle ) if isPedInVehicle ( getLocalPlayer () ) == false or getPedOccupiedVehicle ( getLocalPlayer () ) ~= vehicle or getElementHealth ( getLocalPlayer () ) <= 0 then if sound then if isElement ( sound ) then destroyElement ( sound ) end end killTimer ( timerVehicle ) guiSetVisible ( label, false ) setElementData ( getLocalPlayer (), "liveradio.radio", 0 ) end end , 50, 0, vehicle ) end ) addEventHandler ( "onClientPlayerRadioSwitch", getLocalPlayer (), function ( station ) if station ~= 0 then cancelEvent () end if xmlNodeGetAttribute ( nodeRealism, "enabled" ) ~= "true" or getElementData ( getLocalPlayer (), "liveradio.seat" ) == 0 or getPedOccupiedVehicle ( getLocalPlayer () ) == false then if station == 1 then setElementData ( getLocalPlayer (), "liveradio.radio", getElementData ( getLocalPlayer (), "liveradio.radio" ) + 1 ) elseif station == 12 then setElementData ( getLocalPlayer (), "liveradio.radio", getElementData ( getLocalPlayer (), "liveradio.radio" ) - 1 ) if getElementData ( getLocalPlayer (), "liveradio.radio" ) == -1 then for k, v in ipairs ( xmlNodeGetChildren ( nodeStations ) ) do setElementData ( getLocalPlayer (), "liveradio.radio", k ) end end end if sound then if isElement ( sound ) then destroyElement ( sound ) end end if getPedOccupiedVehicle ( getLocalPlayer () ) then setElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio" .. getElementData ( getLocalPlayer (), "liveradio.seat" ), getElementData ( getLocalPlayer (), "liveradio.radio" ) ) end local nodeStation = xmlFindChild ( nodeStations, "station", getElementData ( getLocalPlayer (), "liveradio.radio" ) - 1 ) if nodeStation then local radioName = xmlNodeGetAttribute ( nodeStation, "name" ) local radioURL = xmlNodeGetAttribute ( nodeStation, "URL" ) sound = playSound ( radioURL ) guiSetText ( label, radioName ) guiSetVisible ( label, true ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) else guiSetText ( label, "Radyo Kapali" ) guiSetVisible ( label, true ) setElementData ( getLocalPlayer (), "liveradio.radio", 0 ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) end if xmlNodeGetAttribute ( nodeRealism, "enabled" ) == "true" and getPedOccupiedVehicle ( getLocalPlayer () ) then setElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio0", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio1", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio2", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) setElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio3", getElementData ( getLocalPlayer (), "liveradio.radio" ) ) triggerServerEvent ( "onPlayerRadioSwitch", getLocalPlayer (), getPedOccupiedVehicle ( getLocalPlayer () ) ) end end end ) addEventHandler ( "onClientVehicleStartExit", getRootElement (), function ( player ) if player == getLocalPlayer () then if sound then if isElement ( sound ) then destroyElement ( sound ) end end if isTimer ( timerVehicle ) then killTimer ( timerVehicle ) end guiSetVisible ( label, false ) setElementData ( player, "liveradio.radio", 0 ) end end ) addEvent ( "switchRadioChannel", true ) addEventHandler ( "switchRadioChannel", getLocalPlayer (), function () if sound then if isElement ( sound ) then destroyElement ( sound ) end end local nodeStation = xmlFindChild ( nodeStations, "station", getElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio0" ) - 1 ) if nodeStation then local radioName = xmlNodeGetAttribute ( nodeStation, "name" ) local radioURL = xmlNodeGetAttribute ( nodeStation, "URL" ) sound = playSound ( radioURL ) guiSetText ( label, radioName ) guiSetVisible ( label, true ) setElementData ( getLocalPlayer (), "liveradio.radio", getElementData ( getPedOccupiedVehicle ( getLocalPlayer () ), "liveradio.radio0" ) ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) else guiSetText ( label, "Radyo Kapali" ) guiSetVisible ( label, true ) setElementData ( getLocalPlayer (), "liveradio.radio", 0 ) if isTimer ( timerLabel ) then killTimer ( timerLabel ) end timerLabel = setTimer ( guiSetVisible, 5000, 1, label, false ) end end )
  15. I was looking for a script that could run videos on my server on some screen, I found this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11851 However, since I wanted to take the video to another place, I used the modifications that my friend suggested here: https://forum.mtasa.com/topic/81334-cinema-problem-xyz/?tab=comments#comment-744381 But on my server nothing worked, it keeps playing music but the video does not appear on Drive-in. I was wondering how to put the command to open the video panel just for admin. Here is the script: local cWindow = guiCreateWindow(337, 177, 816, 762, "CINEMA", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, cWindow) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://www.youtube.com") end ) CINEMA = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() guiWindowSetSizable(cWindow, false) guiSetProperty(cWindow, "CaptionColour", "FF0309FB") guiSetVisible(cWindow,false) CINEMA.button[1] = guiCreateButton(9, 608, 388, 35, "GET URL", false, cWindow) guiSetFont(CINEMA.button[1], "default-bold-small") guiSetProperty(CINEMA.button[1], "NormalTextColour", "FFFF0000") CINEMA.button[2] = guiCreateButton(427, 608, 381, 35, "PUT VIDEO IN CINEMA", false, cWindow) guiSetFont(CINEMA.button[2], "default-bold-small") guiSetProperty(CINEMA.button[2], "NormalTextColour", "FFFF0000") CINEMA.button[3] = guiCreateButton(10, 653, 388, 35, "CLOSE", false, cWindow) guiSetFont(CINEMA.button[3], "default-bold-small") guiSetProperty(CINEMA.button[3], "NormalTextColour", "FFFF0000") CINEMA.button[4] = guiCreateButton(425, 654, 383, 34, "VIEW VIDEO IN FULL SCREEN MODE", false, cWindow) guiSetFont(CINEMA.button[4], "default-bold-small") guiSetProperty(CINEMA.button[4], "NormalTextColour", "FFFF0000") CINEMA.edit[1] = guiCreateEdit(11, 700, 796, 52, "", false, cWindow) guiEditSetReadOnly(CINEMA.edit[1], true) end ) function geturl() if source == CINEMA.button[1] then guiSetText(CINEMA.edit[1],getBrowserURL(theBrowser)) end end addEventHandler("onClientGUIClick",root,geturl) function dxDrawImage3D(x,y,z,w,h,m,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c , ...) end local screenWidth, screenHeight = guiGetScreenSize() local webBrowser = createBrowser(screenWidth, screenHeight, false, false) function getPositionFromElementOffset(element, offX, offY, offZ) local m = getElementMatrix(element) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z end function webBrowserRender() -- This will fetch the top middle point of the drive-in screen (Remember to replace the INSERTSCREENELEMENTHERE variable with your object pointer) local screenPosX, screenPosY, screenPosZ = getPositionFromElementOffset(INSERTSCREENELEMENTHERE, 0, 0.04, 10.6) dxDrawMaterialLine3D(screenPosX, screenPosY, screenPosZ, screenPosX, screenPosY, screenPosZ-8.5, webBrowser, 18, tocolor(255, 255, 255, 255), screenPosX, screenPosY+1, screenPosZ) end function fullscreen() local URLs = string.sub(guiGetText(CINEMA.edit[1]),"33") if source == CINEMA.button[4] then loadBrowserURL(webBrowser, "https://www.youtube.com/embed/"..URLs.."?autoplay=1&iv_load_policy=3&enablejsapi=1&fs=0&theme=light") end end addEventHandler("onClientGUIClick",root,fullscreen) function brow() if source == CINEMA.button[2] then loadBrowserURL(webBrowser, guiGetText(CINEMA.edit[1])) addEventHandler("onClientPreRender", root, webBrowserRender) end end addEventHandler("onClientBrowserCreated", webBrowser, brow) addEventHandler("onClientGUIClick",root,brow) function url() guiSetVisible(cWindow,true) showCursor( true ) guiSetInputEnabled( true ) end addCommandHandler("cinema",url) function closeman() if source == CINEMA.button[3] then guiSetVisible(cWindow,false) showCursor( false ) guiSetInputEnabled( false ) end end addEventHandler("onClientGUIClick",root,closeman) UP
  16. Olá, eu tenho um servidor. Gostaria de saber se tem como colocar o freeroam por acl (grupo), e se tiver, como faço isso? Ajudem por favor. Obrigado! Exp:Queria Q So Um Certo Grupo Da Acl Pudesse Usar o Freeroam
  17. Can someone help me? what script used in this lock on fire hydra missiles
  18. function imagem() dxDrawImage(986, 269, 349, 197, ":scr_screenloader/img/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end addEventHandler("onClientRender", root, imagem) function checkTransfer() if isTransferBoxActive() == true then setTimer(checkTransfer,2000,1) else removeEventHandler("onClientRender", root, imagem) end end addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) I need help with a script I'm trying to do, it's an image that stays open while downloading the resources and closes when the download is finished. Obs: I already added as a goal, until I can make the image open but I can not make it close, with the code below it does not appear
  19. local drawDistance = 15 g_StreamedInPlayers = {} function onClientRender() local cx, cy, cz, lx, ly, lz = getCameraMatrix() for k, player in pairs(g_StreamedInPlayers) do if isElement(player) and isElementStreamedIn(player) then do local vx, vy, vz = getPedBonePosition(player, 4) local dist = getDistanceBetweenPoints3D(cx, cy, cz, vx, vy, vz) if dist < drawDistance and isLineOfSightClear(cx, cy, cz, vx, vy, vz, true, false, false) then local x, y = getScreenFromWorldPosition(vx, vy, vz + 0.3) if x and y then local ID = getPlayerID(player) local w = dxGetTextWidth(ID, 0.1, "default-bold") local h = dxGetFontHeight(1, "default-bold") dxDrawText("#ffffff"..ID.."", x - 1 - w / 1, y - 1 - h - 12, w, h, tocolor(0, 0, 0), 1.20, "default-bold", "left", "top", false, false, false, true, false) end end end else table.remove(g_StreamedInPlayers, k) end end end addEventHandler("onClientRender", root, onClientRender) function onClientElementStreamIn() if getElementType(source) == "player" and source ~= getLocalPlayer() then setPlayerNametagShowing(source, false) table.insert(g_StreamedInPlayers, source) end end addEventHandler("onClientElementStreamIn", root, onClientElementStreamIn) function onClientResourceStart(startedResource) visibleTick = getTickCount() counter = 0 local players = getElementsByType("player") for k, v in pairs(players) do if isElementStreamedIn(v) and v ~= getLocalPlayer() then setPlayerNametagShowing(v, false) table.insert(g_StreamedInPlayers, v) end end end addEventHandler("onClientResourceStart", resourceRoot, onClientResourceStart) function getPlayerFromID(ID) return call(getResourceFromName("ID_System"), "getPlayerFromID", tonumber(ID)) end function getPlayerID(player) return getElementData(player,"ID") end Preciso muito de ajuda, irei abrir um servidor de Role-Play e fiz esse script de id, mas gostaria de saber se alguem poderia me ajudar, a duvida seria como deixar o id fixo, tipo quando alguem sair do servidor com exemplo ID 1, quando ela voltar esteja com o mesmo id. Alguem me ajuda?
  20. n1czek

    help

    I know someone why I can not connect to any server and I get something like this? https://imgur.com/a/AZrSGUj how would someone say something about things or how to fix it gets a big plus from me: D thank you in advance
  21. Hiner

    math.random HELP!!!

    Привет, мне нужна помощь. Я хочу сделать паспортную систему, мне нужен номер паспорта, который будет случайным
  22. Opa, Estou com um projeto de servidor RP e sou novato em script's, quero ir aprendendo conforme a evolução do server e estou com 2 dúvidas... 1- Como removo a mensagem de login "You SuccessFully logged in" ? 2- Neste servidor que estou fazendo as profissões já estão configuradas e para chamar o uber por exemplo é só digitar "/uber" e para evitar do jogador ter que digitar o comando eu Estou com um script de celular no qual ele tem o botão de uber porém eu queria apenas que o botão do celular em si executasse apenas o comando "/uber" e já era mas pelo que eu vi ele está criando um novo sistema de uber no qual ele chama os players que estão na ACL uber e eu queria remover esse sistema e apenas fazer o botão executar o comando. Acho que deu pra entender mais ou menos a que ponto quero chegar. Código do "Botão Uber" Do script do celular: function ChamarTaxista () local x, y, z = getElementPosition(source) local loc = getZoneName ( x, y, z ) local city = getZoneName ( x, y, z, true ) outputChatBox("#00FFFFUber Acionado, aguarde no local.", source, 255, 255, 255, true) for theKey,player in ipairs (getElementsByType("player")) do local accName = getAccountName ( getPlayerAccount ( player ) ) if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( GroupName2) ) ) then outputChatBox("#00FFFF"..getPlayerName(source).." precisa de um uber em "..loc.." ("..city.."), localize-o em seu GPS", player, 255, 255, 255, true) displayServerMessage(player, ""..getPlayerName(source).." precisa de um uber em "..loc.." ("..city.."), localize-o em seu GPS", "warning") local blip = createBlipAttachedTo ( source, 56 ) setElementVisibleTo(blip, root, false) setElementVisibleTo(blip, player, true) setTimer ( function() destroyElement(blip) end, 270000, 1) end end end addEvent( "ChamarOTaxista", true ) addEventHandler( "ChamarOTaxista", root, ChamarTaxista)
  23. Hiner

    math.random HELP!!!

    Hi, I need some help. I want to make a passport system, I need a passport number that will be random
  24. Estamos buscando ayuda para crear un servidor MTA Si alguien tiene experiencia en crear servidores, porfavor, contactenos Muchas gracias por la ayuda
  25. Hey, I have a freeroam server and for that I have a "Clan Panel" or "Clan System" script, which have a problem . The problem of the resource is that when I use the respective bind ("H") the clan panel is not showed on the server. I am now in a sad situation , it would be great if someone helps me out. The script : clan_c.lua : Clan = { Button = {}, Window = {}, Gridlist = {}, Edit = {} } Clan.Window[1] = guiCreateWindow(306, 174, 320, 346, "Clan panel", false) guiWindowSetSizable(Clan.Window[1], false) Clan.Window[2] = guiCreateWindow(401, 281, 252, 99, "Set Player Rank", false) guiWindowSetSizable(Clan.Window[2], false) Clan.Window[3] = guiCreateWindow(401, 281, 252, 99, "Set Player Rank", false) guiWindowSetSizable(Clan.Window[3], false) Clan.Gridlist[1] = guiCreateGridList(9, 25, 188, 311, false, Clan.Window[1]) local column = guiGridListAddColumn(Clan.Gridlist[1], "Players", 0.9) if ( column ) then --If the column has been created, fill it with players for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local players = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,players,false,false) end end Clan.Button[1] = guiCreateButton(204, 51, 106, 38, "Add", false, Clan.Window[1]) Clan.Button[2] = guiCreateButton(204, 96, 106, 38, "Kick", false, Clan.Window[1]) Clan.Button[3] = guiCreateButton(204, 144, 106, 38, "Promote", false, Clan.Window[1]) Clan.Button[4] = guiCreateButton(204, 192, 106, 38, "Demote", false, Clan.Window[1]) Clan.Button[5] = guiCreateButton(204, 288, 106, 38, "Close", false, Clan.Window[1]) Clan.Button[6] = guiCreateButton(13, 62, 87, 23, "Cancel", false, Clan.Window[2]) Clan.Button[7] = guiCreateButton(143, 62, 87, 23, "Set", false, Clan.Window[2]) Clan.Button[8] = guiCreateButton(13, 62, 87, 23, "Cancel", false, Clan.Window[3]) Clan.Button[9] = guiCreateButton(143, 62, 87, 23, "Set", false, Clan.Window[3]) Clan.Edit[1] = guiCreateEdit(13, 29, 227, 28, "", false, Clan.Window[2]) Clan.Edit[2] = guiCreateEdit(13, 29, 227, 28, "", false, Clan.Window[3]) guiSetVisible(Clan.Window[1], false) guiSetVisible(Clan.Window[2], false) guiSetVisible(Clan.Window[3], false) showCursor(false) if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Snowwhite" or getElementData(localPlayer, "player.key") == "danksta" or getElementData(localPlayer, "player.key") == "[ET]Snowwhite" or getElementData(localPlayer, "player.key") == "[ET]Danksta" or getElementData(localPlayer, "player.key") == "Danksta" then guiSetEnabled(Clan.Button[3], true) guiSetEnabled(Clan.Button[4], true) else guiSetEnabled(Clan.Button[3], false) guiSetEnabled(Clan.Button[4], false) end function toggleClanControl( source ) if getElementData(localPlayer, "player.key") == "Snowwhite" or getElementData(localPlayer, "player.key") == "[ET]Snowwhite" or getElementData(localPlayer, "player.key") == "danksta" or getElementData(localPlayer, "player.key") == "[ET]Danksta" or getElementData(localPlayer, "player.key") == "Danksta" then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Snowwhite" or getElementData(localPlayer, "player.key") == "danksta" or getElementData(localPlayer, "player.key") == "[ET]Snowwhite" or getElementData(localPlayer, "player.key") == "Danksta" or getElementData(localPlayer, "player.key") == "[ET]Danksta" then guiSetEnabled(Clan.Button[3], true) guiSetEnabled(Clan.Button[4], true) else guiSetEnabled(Clan.Button[3], false) guiSetEnabled(Clan.Button[4], false) end else showCursor ( false ) guiSetVisible( Clan.Window[1], false ) end end end bindKey( "H", "down", toggleClanControl ) addCommandHandler("clan", toggleClanControl) addEventHandler("onClientGUIClick", guiRoot, function() if source == Clan.Button[1] then local row, column = guiGridListGetSelectedItem(Clan.Gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText(Clan.Gridlist[1],row,column) local player = getPlayerFromName(playerName) local team = getPlayerTeam(localPlayer) local teamName = getTeamName(team) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("addToTeam", localPlayer,playerName,teamName) end end) addEventHandler("onClientGUIClick", guiRoot, function() if source == Clan.Button[2] then local row, column = guiGridListGetSelectedItem(Clan.Gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText(Clan.Gridlist[1],row,column) local player = getPlayerFromName(playerName) local team = getPlayerTeam(localPlayer) local teamName = getTeamName(team) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("kickFromTeam", localPlayer,playerName,teamName) end end) function closeClan() if guiGetVisible(Clan.Window[1]) then guiSetVisible(Clan.Window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", Clan.Button[5], closeClan, false) function togglePromote( source ) -- Show the panel if not guiGetVisible( Clan.Window[2] ) then showCursor ( true ) guiSetVisible( Clan.Window[2], true ) guiMoveToBack( Clan.Window[1] ) else showCursor ( true ) guiSetVisible( Clan.Window[2], false ) end end addEventHandler ( "onClientGUIClick", Clan.Button[3], togglePromote, false ) addEventHandler("onClientGUIClick",Clan.Button[7], function() local row, column = guiGridListGetSelectedItem(Clan.Gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText(Clan.Gridlist[1],row,column) local player = getPlayerFromName(playerName) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("promotePlayer",localPlayer,playerName,tostring(guiGetText(Clan.Edit[1])) or "Member") guiSetVisible( Clan.Window[2], false ) showCursor ( true ) end,false) function closeClan() if guiGetVisible(Clan.Window[2]) then guiSetVisible(Clan.Window[2],false) showCursor(true) end end addEventHandler ("onClientGUIClick", Clan.Button[6], closeClan, false) function toggleDemote( source ) -- Show the panel if not guiGetVisible( Clan.Window[2] ) then showCursor ( true ) guiSetVisible( Clan.Window[2], true ) guiMoveToBack( Clan.Window[1] ) else showCursor ( true ) guiSetVisible( Clan.Window[2], false ) end end addEventHandler ( "onClientGUIClick", Clan.Button[4], toggleDemote, false ) addEventHandler("onClientGUIClick",Clan.Button[9], function() local row, column = guiGridListGetSelectedItem(Clan.Gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText(Clan.Gridlist[1],row,column) local player = getPlayerFromName(playerName) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("DemotePlayer",localPlayer,playerName,tostring(guiGetText(Clan.Edit[2])) or "Member") guiSetVisible( Clan.Window[3], false ) showCursor ( true ) end,false) function closeClan() if guiGetVisible(Clan.Window[3]) then guiSetVisible(Clan.Window[3],false) showCursor(true) end end addEventHandler ("onClientGUIClick", Clan.Button[8], closeClan, false) and the clan_s.lua : function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end local blip = {} addEvent("addToTeam", true) addEventHandler("addToTeam", root, function (playername, teamname) local player = getPlayerFromName(playername or "") local team = getTeamFromName(teamname or "") if player and team then local r, g, b = getTeamColor ( team ) setPlayerTeam(player, team) if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) outputChatBox("You've been added to "..getTeamName(team).."", player, 255, 255, 255, r,g,b,true) end end end) addEvent("kickFromTeam", true) addEventHandler("kickFromTeam", root, function (playername, teamname) local player = getPlayerFromName(playername or "") local team = getTeamFromName(teamname or "") if player and team then local red, green, blue = math.random (50, 255), math.random (50, 255), math.random (50, 255) setPlayerTeam(player, nil) setPlayerNametagColor(player, red, green, blue) outputChatBox("You've been kicked from #FFFFFF"..getTeamName(team).."#FF0000.", player, 255, 0, 0, true) end end) addEvent("promotePlayer",true) addEventHandler("promotePlayer",root, function(playername, rank) local player = getPlayerFromName(playername or "") if player then if rank then setElementData(player, "clan.rank", rank) outputChatBox("You Have Been promoted To A #FFFFFF"..tostring(rank), player, 255, 0, 0, true) end end end) addEvent("DemotePlayer",true) addEventHandler("DemotePlayer",root, function(playername, rank) local player = getPlayerFromName(playername or "") if player then if rank then setElementData(player, "clan.rank", rank) outputChatBox("You Have Been Demoted To A #FFFFFF"..tostring(rank), player, 255, 0, 0, true) end end end) function loopFix( thePlayer, _, who, lossp ) if getElementData(thePlayer, "player.key") == "Snowwhite" then if ( who ) then local LossC = tonumber (lossp) or 0 local ThePlayer = getPlayerFromParticalName ( who ) if ( ThePlayer ) then setElementData( ThePlayer,"EXP",LossC ) end end end end addCommandHandler ( "fixbug", loopFix) function getPlayerFromParticalName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end ) It would be great if someone finds what is the problem and help me to fix it our