Jump to content

Search the Community

Showing results for tags 'ped'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Member Title





  1. Xwaw

    Ped scripting

    Ok so recently I was thinking of reworking the police from gta san andreas to mta san andreas and making a police waves style minigame you have to survive. I have an idea how to do it but I don't know if the engine will allow me to do it. So my question is, if I want to program a ped to get to the player's position avoiding obstacles (without jumping over them) with the a* algorithm, am I able to do that? Because the last time I did this type of thing, one such npc could crash my entire game. As for the respawn of such bots, it would work more or less in the same way as in the original version of gta sa
  2. I have just added a ped to a specific location. I want the ped , when it move away from this location, to automatically return to it , how can i do this ?
  3. hi guys i want call marker from another function like this code local hidemark = createMarker(10,50,5,"cylinder",1,0,255,0) function mark(theplayer) markerveh =createMarker(0,0,5,"cylinder",1,0,255,0) end addEventHandler("onMarkerHit",marker1,mark) function job1(theplayer) setElementVisibleTo(markerveh,root,false)-- for here end addCommandHandler("hidemark",job1)
  4. Sometimes when i see peds on the screen some bugs occur, I have tested on several computers and the same bug happens, the bug can be reproduced with some popular scripts like npchlc_traffic, slothbot or zombies, and I have never found out that it can be Here is a video of the glitchy screen and a pic I need help, because i can't find any topic about this u_u
  5. Hello, my English is not good But try to read I want to have a script that creates a ped instead of someone when they leave the server And above that ped is written the reason for leaving the player from the server. As : Internet outage Normal exit
  6. Is there a way to make ped shoot with animation like in singleplayer? (holding pisol in two hands)
  7. Olá pessoal do fórum, queria fazer um sistema de que quando eu clicasse no meu personagem iniciava uma função exp: abrir um painel cegui - realmente não sei por onde começar, também não quero o script pronto quero aprender e fazer do 0, quem poder me ajudar por favor agradeço desde já.
  8. My goal is simple, after using GetPedCollisionTarget, I want it to return 3 numbers that correspond to the coordinates of the target that has collision detection, but for this function to return something, you must first aim the weapon. And here is the problem because when the player is aiming, the crosshair is somewhere close but not in the center of the center, and I want to get the coordinates of the target in the center, not somewhere nearby. And here comes the question, is it possible to make GetPedCollisionTarget work but without aiming the weapon? PLEASE HELP
  9. setPedAnimation(getLocalPlayer(), "shop", "shp_gun_aim") I would like my character to move with this animation, which means that when I aim a normal weapon, e.g. M4, I can move, but I can't move with this animation. Please help!
  10. I am creating a new weapon, and is in the aiming phase, but I would like to set the aiming position for the player, that createWeapon ("m4", 0, 0, 0) would aim where the player is aiming, and that the animation set by me [setPedAnimation (getLocalPlayer (), "shop", "shp_gun_aim", -1, true, true, false, false, 250, true)] aimed where the player looks while holding the right mouse button, How can I do it? By the way, I would like to ask if it is possible for the player not to hit when the animation is on?
  11. function Tared (policePed,hitElement,dim) setPedAnalogControlState(policePed, "accelerate", 1) end addEvent( "Tared", true ) addEventHandler( "Tared", localPlayer, Tared ) ابي البوت يطارد الاعب الي لمس الماركر الي اسمة Marker1 هل ممكن مساعدة؟
  12. local Marker1 = createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255) addEventHandler("onMarkerHit",Marker1, function (hitElement,matchingDimension) local policePed = createPed (280, -148.21268, -959.39343, 28.35586) local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90) warpPedIntoVehicle ( policePed, PoliceCar) end ) ابي اخلي البيد الي اسمة policePed يطارد الاعب ممكن مساعدة؟
  13. السلام عليكم ورحمة الله وبركاتة انا كنت ابي اسوي بوت اول ما المس ماركر معين يروح البوت يظهر بسيارت شرطة ويطاردني ممكن مساعدة؟
  14. Hello, I would like to know how to set npc rotation towards the player (To NPC just look at the player) preferably using the command "getElementPosition" (client resource)
  15. Buenas gente, necesito saber si ¿existe alguna función que permita identificar si un jugador que está dentro de un vehículo es el conductor o el pasajero? Si es así ¿cuál es? Por favor. Gracias ?
  16. I would like to know where I can find the slothbot script, because I want to know how it works, what the function looks like, etc.
  17. I would like to know what commands I need for this script. And I don't accept answers about "slothbot / slothman" commands, because I want to use commands directed to Ped, eg "CreatePed", the best answer that helps me will get a love of me
  18. Write me a script how to do it, I will be very grateful
  19. I do remember I found a script that was similiar to this idea but I really dont know where did I find that. It'd be so cool if I could have this script again......I know this forum is not about asking scripts from people and I usually make those for myself but in this one I have no clue where to start.. Could someone help me in this one?
  20. Hello I'm just asking for function or way to get the local player in the Server-Side in the mod Please explain me all the possible ways to get the local player in the Server-Side in Easy , Clear and detailed way Thank you !
  21. local NPC = createPed(285,376.39947509766,-65.617164611816,1001.5078125) setElementInterior( NPC, 10 ) function NPCRotate ( ) local rotX, rotY, rotZ = getElementRotation(NPC) -- get the local players's rotation setElementRotation(NPC,0,0,rotZ+10,"default",true) -- turn the player 10 degrees clockwise end addCommandHandler ( "turn", NPCRotate ) local screenWidth, screenHeight = guiGetScreenSize() local range = 10 function NPCnametag() local x,y,z = getPedBonePosition(NPC,6) local px,py,pz = getElementPosition(localPlayer) if getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= range then local sx,sy = getScreenFromWorldPosition(x,y,z) if sx then dxDrawText("Bob",sx,sy,sx,sy,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end end function HandleTheRendering() addEventHandler("onClientRender",getRootElement(), NPCnametag) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
  22. local rootElement = getRootElement() local NPC = createPed(124,0,0,5) local screenWidth, screenHeight = guiGetScreenSize() function NPCnametag() local sx,sy = getScreenFromWorldPosition (getElementPosition(NPC)) if sx then dxDrawText("Bob",sx,sy,screenWidth, screenHeight,tocolor ( 255, 255, 0, 255 ), 2,"sans") end end function HandleTheRendering() addEventHandler("onClientRender",rootElement, NPCnametag) end addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
  23. Hello.I have a problem with zombies. Someone could help or tell me where and what to look for? Po polsku tez mozecie pisac.
  24. O problema que estou enfrentado é que estou conseguindo criar um ped(pedestre), mas não estou conseguindo rotacioná-lo. ped = createPed( 20 , 1847.7277832031 , -1873.6942138672 , 13.578125 , 0.01, false) Obs.: o quinto argumento deve ser um número float, tentei colocar vários outros (do que está no acima), como 0.1, 0.13, 1.5, 1.932 e a rotação não acontece.
  • Create New...