Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. getElementsByType("player") isObjectInACLGroup createBlipAttachedTo
  2. Event: onMarkerHit "The source of this event is the marker that got hit by the element."
  3. That will stop the drawing. Try this: local x,y = guiGetScreenSize () addEventHandler ("onClientRender", root, function (source) local pVehicle = getPedOccupiedVehicle (localPlayer) if pVehicle then local vHealth = (getElementHealth (pVehicle)-250)/10 if vHealth < 0 then vHealth = 0 end dxDrawLine (x/1.05, y/2.1, x/1.05, y/4, tocolor (255, 255, 255)) -- HOR dxDrawLine (x/1.125, y/2.1, x/1.125, y/4, tocolor (255, 255, 255)) -- HOR dxDrawLine (x/1.05, y/2.1, x/1.125, y/2.1, tocolor (255, 255, 255)) -- VER dxDrawLine (x/1.05, y/3.5, x/1.125, y/3.5, tocolor (255, 255, 255)) -- VER dxDrawRectangle (x/1.124, y/2.1,x/15.795, y/-3.97*vHealth/100, tocolor (0, 255, 0, 200)) -- GREEN ARENA end end )
  4. Et-win

    Lags :O

    Why is the setTimer pointless? The element data doesn't refresh on his own mhm...
  5. Et-win

    Question

    That's funny. The first time when I'm only searching for that code in server-side it's a client-side only code. Yes, that is the code. x3
  6. That's correct, except 'thePlayer'. use 'getElementsByType("player")' to loop through all players, make it check for everyone. Now only that and the 'setTimer' to go.
  7. Et-win

    About XML

    local gAreas = getElementsByType("radararea") for placeNumber, areaData in ipairs(gAreas) do --Get stuff and place them into XML end --Later, when you want to receive them: local xmlLoadFile("file.xml") local child = xmlFindChild(file, local gChildren = xmlNodeGetChildren(child) for placeNumber, childrenData in ipairs(gChildren) do --Get attributes (Like position, colors, etc.) and use them end Just make a random XML file, and try creating some childs and finding them. Also with attributes. Explanations are on wiki.
  8. Et-win

    Question

    createObject --(I think?) createElement --(Maybe this then?) giveWeapon
  9. Et-win

    About XML

    local file = xmlCreateFile("file.xml", "data") local child = xmlCreateChild(file, "radararea") xmlNodeSetAttribute(child, "colorR", yourcolorR) xmlNodeSetAttribute(child, "colorG", yourcolorG) xmlNodeSetAttribute(child, "colorB", yourcolorB) xmlSaveFile(file) xmlUnloadFile(file) Fast-typed, can be wrong, but doubt it. Here are all XML functions: https://wiki.multitheftauto.com/wiki/Xml
  10. I honestly have no idea, but I don't think so. PS: file src doesn't need a type.
  11. Et-win

    Question

    But it has shooting automatically towards vehicles and players. (It just shoots to the player, but hits vehicles if they are in) (Atleast, as far as I saw on the picture). You can rebuild it to a weapon on the ground. Instead of a ped, the gun.
  12. Well then. I have no idea then. Maybe try to start with 1 replace, then if that works, add another, etc. Then when it crashes, test that model only, if it then crashes again, that is the problem.
  13. setTimer getZoneName setPlayerWantedLevel if (zone == "Las Venturas") then Now you can try to make it. Use the timer to check every 1~5 seconds or she/he is in LV. (Zone) It's easy, really. Just think I already did alot of the script.
  14. Get in-game by yourself. Then as soon as you time out, you get a message on the menu from MTA. That code.
  15. Et-win

    Question

    You could try to check how this guy did it: https://community.multitheftauto.com/ind ... ls&id=9568 (Looking, not stealing.)
  16. Everything is possible.
  17. Still, there must be an error code in the window you get. (ERROR @ Window Name)
  18. Yup. Click on the code and read the wiki. Find the gun list, and there you will find the ID's of weapons, with M4 in it too.
  19. but ac-police not added in Community That's why I think it's weird, because it is a free resource to download. Through, it says resource 'ac-police' is not running. And if I look to the link, I doubt this is bugged.
  20. giveWeapon And yes, you can do that by doing this: local x, y, z = 1, 2, 3 createMarker --Or: createMarker(1, 2, 3, ...
  21. Et-win

    Question

    Search in the community for aimbot and you get what you want. For vehicles you just can edit it then. (I guess you want this?)
  22. Which error it gives if you start the resource and everyone gets kicked out?
  23. It gets the zone name... Set the bool to 'true' to get city names only. Should able to get "Las Vegas" with it. Click on the code, read the wiki.
×
×
  • Create New...