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
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • 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


About Me


Gang


Location


Occupation


Interests

Found 622 results

  1. Hello! I made a handling, in 'hedit' resource. (link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3716) I can export this handling and I got a string, like this: SWATVAN 5000.0 10000.0 2.5 0.0 0.0 -0.1 85 0.65 0.7 0.46 5 110.0 24.0 25.0 4 D 6.4 0.45 0 27.0 0.7 0.08 1.0 0.30 -0.18 0.5 0.0 0.32 0.06 40000 880010 1000000 0 1 13 How can I load this handling to all vehicles, easily? I don't want to apply every handling property, with 'setVehicleHandling'.
  2. Hola, quisiera que cuando un jugador escriba /afk por arriba de su cabeza unas letras que diga AFK y cuando escriba /noafk estas desaparescan. Nose muy bien como usar usar el dxDrawText, por favor AYUDA Aqui les dejo el scrip del AFK: Hello, I would like that when a player writes / afk above his head some letters that say AFK and when he writes / noafk they disappear. I do not know how to use the dxDrawText, please HELP Here is the AFK scrip: addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") --setElementData(source,"tafk",false) end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") setElementData(v,"tafk",false) setElementData(v,"invencible",false) end end) function afkstart(player) local vida = getElementHealth ( player ) if getElementData(player,"afk_state") == "back" then local state = ( not getElementData ( player, "invencible" ) ) if vida < 35 then return outputChatBox ("No puedes ir AFK con la vida baja!",player,255,0,0) end if getElementData (player, "tafk", true) then outputChatBox ('#00FF00Espere 10 segundos...',player,255,0,0,true) return end local id2 = getPedWeapon (player) triggerClientEvent(player,"god_mode",player) setElementData ( player, "invencible", state ) --outputChatBox ( "AFK ".. ( state and "Activado" or "Desactivado" ) ..".", player, 255, 0, 0 ) setElementFrozen(player,true) setPlayerNametagText (player, "|AFK|" .. getPlayerName ( player )) outputChatBox(getPlayerName(player).." #ff0000 esta AFK!",getRootElement(),0,255,0, true) setElementData(player,"afk_state","afk") if id2 > 15 then giveWeapon (player, 0, 1, true) end setElementData (player, "tafk",true) toggleControl (player, "fire", false) toggleControl (player, "next_weapon", false) toggleControl (player, "previous_weapon", false) toggleControl ( player, 'vehicle_fire', false ) toggleControl (player, "aim_weapon", false) bindKey (player,"w","down","noafk") bindKey (player,"d","down","noafk") bindKey (player,"s","down","noafk") bindKey (player,"a","down","noafk") bindKey (player,"num_0","down","noafk") bindKey (player,"lctrl","down","noafk") bindKey (player,"arrow_u","down","noafk") bindKey (player,"arrow_d","down","noafk") bindKey (player,"arrow_l","down","noafk") bindKey (player,"arrow_r","down","noafk") bindKey (player,"delete","down","noafk") bindKey (player,"mouse2","down","noafk") bindKey (player,"capslock","down","noafk") if getPedOccupiedVehicle(player) then fixVehicle(getPedOccupiedVehicle(player),true) setElementFrozen(getPedOccupiedVehicle(player),true) setVehicleDamageProof(getPedOccupiedVehicle(player),true) end setElementData (player, "tafk",true) setTimer (setElementData, 10000, 1, player, "tafk", false) end end addCommandHandler("afk", afkstart ) function afkend(player) if getElementData(player,"afk_state") == "afk" then local state = ( not getElementData ( player, "invencible" ) ) setElementData(player,"afk_state","back") triggerClientEvent(player,"disable_god_mode",player) setElementFrozen(player,false) setPlayerNametagText (player, "" .. getPlayerName (player)) outputChatBox(getPlayerName(player).." #00ff00 ya no esta AFK!",getRootElement(),0,255,0, true) toggleControl (player, "fire", true) toggleControl (player, "next_weapon", true) toggleControl (player, "previous_weapon", true) toggleControl ( player, 'vehicle_fire', true ) toggleControl (player, "aim_weapon", true) setElementData ( player, "invencible", state ) --outputChatBox ( "AFK " .. ( state and "Activado" or "Desactivado" ) ..".", player, 255, 0, 0 ) unbindKey (player,"w","down","noafk") unbindKey (player,"d","down","noafk") unbindKey (player,"s","down","noafk") unbindKey (player,"a","down","noafk") unbindKey (player,"num_0","down","noafk") unbindKey (player,"lctrl","down","noafk") unbindKey (player,"arrow_u","down","noafk") unbindKey (player,"arrow_d","down","noafk") unbindKey (player,"arrow_l","down","noafk") unbindKey (player,"arrow_r","down","noafk") unbindKey (player,"delete","down","noafk") unbindKey (player,"mouse2","down","noafk") unbindKey (player,"capslock","down","noafk") if getPedOccupiedVehicle(player) then setElementFrozen(getPedOccupiedVehicle(player),false) setVehicleDamageProof(getPedOccupiedVehicle(player),false) end end end addCommandHandler("noafk", afkend ) addCommandHandler("wp", afkend ) addCommandHandler("weapon", afkend ) addCommandHandler("dim", afkend ) addEventHandler( "onResourceStop", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") --setElementData(v,"tafk",false) setElementData(v,"invencible",false) end end)
  3. I want create a bank-system. But i don't know, how to begin the script. Can i make it possible this with setElementData, and getElementDatas? sorry for my bad english
  4. Bem, Como eu estou fazendo um servidor RPG, estou querendo meio que deixar realista e tals se alguem saber como desativar o f1?
  5. Stev3y

    Tuneable cars

    Hello. So, I made a MTA server the other day. I made it only for fun, like to play with my IRL friends. Once I downloaded a modded car, which had tuneable parts, and in the rar file I had a lot of files like these : fbmp_a_l.dff, and a lot more, and I don't know what to do with them. Can I get some help pls? I have another question: I was searching for a tuning system but I couldn't really find any. Can somebody link me some?
  6. Meu script com mta esta dando problema com Valo nulo que não consigo resolver Minicio = createMaker (-2084.712890625, 229.470703125, 35.72966003418, "cylinder", 2, 255, 0 ,0, 255) veh[source] = {} function inicio (source) if isElementWithinMarker(source, Minicio) then if veh[source] and isElementWithinMarker ( veh[sorce] ) then destroyElement ( veh[source] ) veh[source] = nil end x,y,z = getElementPosition(source) Trabalho = true veh[source] = createVehicle(524, -2088.3271484375, 258.548828125, 35.823341369629) outputChatBox ( "#00ff00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",sorce, 0,0,0,true ) outputChatBox ( "LEVE O VEICULO ATE A PEDREIRA DE LAS VENTURAS",sorce, 0,0,0,true ) outputChatBox ( "#00ff00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",sorce, 0,0,0,true ) end end addEventHandler( "onMarkerHit", Minicio, inicio )
  7. i need help guys i need lua code to show player rank on player in the middle of the cylynder this is for run gamemode
  8. I want create a script, which tp a player to me, and teleport me to a player, like in admin panel, just with command. How to make this? For example: /tpto playername , and /tpme playername. And when i teleport a player to me, the player get out from vehicle
  9. I want create a script, which creates a 3d text with a cmd. For example, when i type "/word asd" then this make a 3d text the player position "#playername : asd", then after elapse 3 hours, the text will hide. How to make this?
  10. addEvent( 'clientRoundEnd', true ) addEventHandler( 'clientRoundEnd', localPlayer, --function( camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ, winTeamName ) function( table ) local camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ, winTeamName camPosX = table[ 1 ] camPosY = table[ 2 ] camPosZ = table[ 3 ] camLookX = table[ 4 ] camLookY = table[ 5 ] camLookZ = table[ 6 ] winTeamName = table[ 7 ] w = winTeamName setGameSpeed( 0.02 ) guiSetVisible( gui.images['intro'], true ) showPlayerHudComponent( 'radar', false ) guiSetVisible( weaponsGui.window[1], false ) guiSetVisible( weaponsGui.window[2], false ) guiSetVisible( gui.images[ winTeamName ], true ) fadeCamera( true ) setElementData( localPlayer, 'State', 'Dead' ) setTimer( function( ) attachRotatingCamera( false, localPlayer ) guiSetVisible( gui.images[ winTeamName ], false ) fadeCamera( false, 0.01 ) setCameraMatrix( camPosX, camPosY, camPosZ, camLookX, camLookY, camLookZ ) setGameSpeed( 1 ) setTimer( fadeCamera, 500, 1, true, 1.0 ) end, 5500,1 ) setTimer( function( ) triggerServerEvent( 'takeClientWeapons', resourceRoot ) setGameSpeed( 1 ) end, 6000,1 ) showCursor( true ) updateBestKiller( ) gdyRundaSieSkonczy( ) endRoundOgg = playSound( "audio/round_end.ogg" ); end ) how to add random round end music to stealth pro ? i want to add 5 random select musics to round end music pls help me guys. sorry about my bad english
  11. Hello, I would like to know if you can help me ... My MTA is not coming out sound, but the GTA yes, I would like you to help me because I'm with this problem a year ago
  12. am trying to make script that allows only staffs(or acl i chose) to enter such vehicles and it would be great if somone teach me how to make players pays amount of money to spawn them this is what i made but it's not working SCRIPT ERROR: carpriv\server.lua:4: ')' expected near 'then' } script: staffcar = { [432]=true,[425]=true,[520]=true,[599]=true } function enterVehicle ( player, seat, jacked ) if ( staffcar[getElementModel(source)] ) and ( not isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ("Admin") ) then cancelEvent() outputChatBox ( "only acl can enter this!", player ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  13. function outputChatBoxRemote ( playerName, message, type, serverport ) outputChatBox ( "From " .. playerName .. " on " .. serverport .. ": " .. message ) return "hello sailor" end function finishedCallback( responseData, errno ) responseData = tostring(responseData) if responseData == "ERROR" then outputDebugString( "callRemote: ERROR #" .. errno ) elseif responseData ~= "hello sailor" then outputDebugString( "callRemote: Unexpected reply: " .. responseData ) else end end function playerChat ( message, type ) callRemote ( "87.229.77.40:22030", getResourceName(getThisResource()), "outputChatBoxRemote", finishedCallback, getPlayerName(source), message, type, getServerPort() ) end addEventHandler ( "onPlayerChat", getRootElement(), playerChat ) This is the code, but does not working.. what wrong?
  14. arkanbear

    Mega Help!!!!

    Please help me : When turning on the MTA it's all cool but on the 2nd monitor the screen gets tiny with the desktop and when I go to dial the servers that everything is huge as I enter a server, all the things that should be normal are huge. I tried everything I reinstalled mta and gta san andreas You have a scum here: https://imgur.com/a/Yrpk3 And another screen from diagmta: https://pastebin.mtasa.com/676804208 I am Polish and the text is provided by the translator if there is any mistake in the sentence, I'm sorry
  15. Hello have local chat in freeroam server I am new at this I try to make it look in one dimension. For example, if I am in dimension 5, only those in dimension 5 can see it Help please chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local dm = getElementDimension(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getPlayerNametagColor(player) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local) "..nick..": "..msg,v,r,g,b,true) end -- outputServerLog("(Local) "..nick..": "..msg,true) end end addCommandHandler("Local",onChat)
  16. JagleW

    Lags of MTA

    When I play MTA my game lags (drop of fps). From 60 - 10-15 fps for 0.5 second. MTA Diag here: https://pastebin.mtasa.com/745717533
  17. Hello, I want it to be impossible to shoot while this / afk I use toggleControl (player, "fire", false) but this bug in freeroam server ( I think) and allow to shoot HELP please addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") setElementData(source,"tafk",false) end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") setElementData(v,"tafk",false) end end) function afkstart(player) local vida = getElementHealth ( player ) local x, y, z = getElementPosition ( player ) local interior = getElementInterior (player ) local dim = getElementDimension (player) if getElementData(player,"afk_state") == "back" then if vida < 35 then return outputChatBox ("No puedes ir AFK con la vida baja!",player,255,0,0) end if getElementData (player, "tafk", true) then outputChatBox ('#00FF00Espere 10 segundos...',player,255,0,0,true) return end local id2 = getPedWeapon (player) triggerClientEvent(player,"god_mode",player) setElementFrozen(player,true) setPlayerNametagText (player, "|AFK|" .. getPlayerName (player)) outputChatBox(getPlayerName(player).." #ffff00 is AFK!",getRootElement(),255,50,0, true) setElementData(player,"afk_state","afk") if id2 > 0 then giveWeapon (player, 0, 1, true) end theMarker = createMarker ( x, y, z-1.5, "cylinder", 1.5, 0, 255, 0, 170 ) setElementInterior(theMarker, interior, x, y, z-1.5) setElementDimension(theMarker, dim, interior, x, y, z-1.5) toggleControl (player, "fire", false) toggleControl (player, "next_weapon", false) toggleControl (player, "previous_weapon", false) toggleControl ( player, 'vehicle_fire', false ) toggleControl (player, "aim_weapon", false) bindKey (player,"w","down","noafk") bindKey (player,"d","down","noafk") bindKey (player,"s","down","noafk") bindKey (player,"a","down","noafk") bindKey (player,"num_0","down","noafk") bindKey (player,"lctrl","down","noafk") --bindKey (player,"mouse1","down","noafk") bindKey (player,"arrow_u","down","noafk") bindKey (player,"arrow_d","down","noafk") bindKey (player,"arrow_l","down","noafk") bindKey (player,"arrow_r","down","noafk") if getPedOccupiedVehicle(player) then fixVehicle(getPedOccupiedVehicle(player),true) setElementFrozen(getPedOccupiedVehicle(player),true) setVehicleDamageProof(getPedOccupiedVehicle(player),true) end setElementData (player, "tafk",true) setTimer (setElementData, 10000, 1, player, "tafk", false) end end addCommandHandler("afk", afkstart ) function afkend(player) if getElementData(player,"afk_state") == "afk" then setElementData(player,"afk_state","back") triggerClientEvent(player,"disable_god_mode",player) setElementFrozen(player,false) setPlayerNametagText (player, "" .. getPlayerName (player)) outputChatBox(getPlayerName(player).." #ffff00is back!",getRootElement(),0,255,0, true) toggleControl (player, "fire", true) toggleControl (player, "next_weapon", true) toggleControl (player, "previous_weapon", true) toggleControl ( player, 'vehicle_fire', true ) toggleControl (player, "aim_weapon", true) destroyElement(theMarker) unbindKey (player,"w","down","noafk") unbindKey (player,"d","down","noafk") unbindKey (player,"s","down","noafk") unbindKey (player,"a","down","noafk") unbindKey (player,"num_0","down","noafk") unbindKey (player,"lctrl","down","noafk") --unbindKey (player,"mouse1","down","noafk") unbindKey (player,"arrow_u","down","noafk") unbindKey (player,"arrow_d","down","noafk") unbindKey (player,"arrow_l","down","noafk") unbindKey (player,"arrow_r","down","noafk") if getPedOccupiedVehicle(player) then setElementFrozen(getPedOccupiedVehicle(player),false) setVehicleDamageProof(getPedOccupiedVehicle(player),false) end end end addCommandHandler("noafk", afkend ) addEventHandler( "onResourceStop", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") setElementData(v,"tafk",false) end end)
  18. I want make a script, which plays sound from youtube.. But.. there is no one converter which would work.. How to use a converter as sound player? Anyone can help?? Sorry for my bad english..
  19. stPatrick

    Crashes

    Hello! About two weeks ago, every player are crashing. This is a continuous report and everyone is affected, even those who have not crashing formerly. The MTA closes and does not write any crash information. (No script errors)
  20. arkanbear

    Mta Crashing

    My MTA suspends after one hour or a window pops up about the program crashing Help!!!!!!!!! https://pastebin.mtasa.com/952249016
  21. I need help with the creation of the pubg zone, as I do not know how to create it, because I would like very much to be told about methods for the creation of this and what other functions should I have. I would apprecriate it too.
  22. There's a shader and a simple float4x4 array in it. I just want to set the array's values with dxSetShaderValue. How should I do this? float4x4 thisBoneMatrix[6] = { float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), float4x4( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) };
  23. Hi there. Annó programozgattam Lua-t de abba hagytam egy kis időre(két év) és szeretnék hozzá fogni megint, de ehhez kéne egy olyan ember segítsége aki mostanában is foglalkozik vele és türelmesen tovább adja a tudását. Komolyan gondolom naponta fél - 1 órát(nem nagy szám de a suli stb..) szívesen rászánnék persze az iskola mellett mindenkinek van más dolga. Szóval van egy kevés tudásom benne de szeretném megint elkezdeni és akár ha egy idő múlva fellendülök szívesen segítenék én is! (Bocsi ha rossz helyre nyitom a topicot!!) Köszönöm! Feri.
  24. Hey guys. I tried to killTimer after a player gets back to his jobcar. But it doesn't work for me. there isn't even a outputChatBox (I tried it out but deleted it for this showing) local Timer= setTimer( function () JobIcon=createBlip(1611.9,-1891.8,13.60,40, 1, 0, 0, 0, 255, 0, 99999.0) outputChatBox("Der Job wurde beendet!",myPlayer,255,0,0) destroyElement(jobcar) destroyElement(markers1) end,5000,0) end addEventHandler("onPlayerVehicleEnter",getRootElement(), function(vehicleID,leftSeat,jackerPlayer) local vehicleJ=getPedOccupiedVehicle(thePlayer) --jobcar is defined at the top of my script as 'createVehicle(512,....)-- if vehicleJ == jobcar and isTimer(Timer) then killTimer(Timer) end outputChatBox("Du bist rechtzeitig zurückgekehrt!",myPlayer,0,255,0,true) outputChatBox("Drücke 'B' um die Warnleuchte einzuschalten!",myPlayer,255,135,10,true) end) local Timer= setTimer( function () JobIcon=createBlip(1611.9,-1891.8,13.60,40, 1, 0, 0, 0, 255, 0, 99999.0) outputChatBox("Der Job wurde beendet!",myPlayer,255,0,0) destroyElement(jobcar) destroyElement(markers1) end,5000,0) end addEventHandler("onPlayerVehicleEnter",getRootElement(), function(vehicleID,leftSeat,jackerPlayer) local vehicleJ=getPedOccupiedVehicle(player) --jobcar is defined at the top of my script as 'createVehicle(512,....)-- if vehicleJ == jobcar and isTimer(Timer) then killTimer(Timer) end outputChatBox("Du bist rechtzeitig zurückgekehrt!",myPlayer,0,255,0,true) --translation: You came back in time! -- outputChatBox("Drücke 'B' um die Warnleuchte einzuschalten!",myPlayer,255,135,10,true) end)
  25. I need a function that calculates ped's bone matrices. (bone_attach functions doesn't work) I'm working on a shader that actually can move a ped's bone.