Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Zango last won the day on June 5

Zango had the most liked content!

Community Reputation

36 Good


About Zango

  • Rank
    Forum Helper
  • Birthday 19/09/1993


  • Location

Recent Profile Visitors

2,052 profile views
  1. getCameraMatrix only works serverside if the camera is fixed with setCameraMatrix, it doesn't return GTA camera values. Instead of element data, I recommend using triggerServerEvent to send the values to server, and triggerClientEvent to send to relevant (nearby) players.
  2. You need to sync the camera matrix between the player and the other players manually triggerServerEvent -- Send the camera matrix from the player to the server triggerClientEvent -- Send the camera matrix to the other players from the server
  3. Yeah ok, so there is a property for it, but I can't get it working either. There's a chance it was added in a later version (or maybe it never worked). MTA uses CEGUI 0.4.0, released 16 years ago. I searched through the changelog, but there was nothing about it though.
  4. It's a good question. I've looked through the CEGUI properties from here which you can change with guiSetProperty. But I haven't found any setting that turns off this behavior.
  5. I don't know what causes that error. You can often get a lot of misleading compilation errors. Try and go through the steps below and make sure you did everything. Install Microsoft Visual Studio 2019 Pull the latest master from https://github.com/multitheftauto/mtasa-blue.git Put afxres.h into Client/core, Client/launch and Client/loader Run win-create-projects.bat (Remember to run this again when new source files are added) Open MTASA.sln and run Build -> Rebuild Solution Grab a cup of coffee Run win-install-data.bat
  6. I tested your first example, and it works fine, the ped is detected when he runs into the colshape. testPed = createPed(0, 0, 0, 3) setTimer(setPedAnimation, 100, 1, testPed, "ped", "WOMAN_run") testZone = createColRectangle(-10, 10, 50, 50) function testFunc(targetElem) setElementAlpha(targetElem, 0) end addEventHandler("onColShapeHit", testZone, testFunc) For moveObject however, you're right that it doesn't work. When you move an object serverside, it tells all clients to move the object, but nothing happens on the server. If you use getElementPosition while it's moving, i
  7. Yes, you can make an URL like this mtasa://
  8. It's because you are trying to turn table 'v' into a string. As you can find on the wiki for dbPoll, in your case 'p' will be like this { { colname1=value1, colname2=value2, ... }, { colname1=value3, colname2=value4, ... }, ... } So you need to refer to the column name first outputChatBox(k.." = "..v.id); For your purpose, I suggest using inspect instead which converts a table to a readable string. function listTable(queryHandle) local db = dbConnect("sqlite","blips.db") local p = dbPoll(dbQuery(db, "SELECT id,icon,name FROM tabelaBlips"), -1); i
  9. This extension has code completion for VS code. It's the only one I know of.
  10. You need to parse radians to it, like this isMouseInCircleSector(sx/2, sy/2, 330, math.rad(0), math.rad(90))
  11. If you only want to see if the point is inside one of the circle's quadrants, it can be done really simple. If you want to check for any sector, I have made the following, where you define the sector from two angles. It would also be possible to define the sectors from vectors instead. local sx, sy = guiGetScreenSize( ) function isMouseInCircleSector(cx, cy, r, angleStart, angleEnd) local mx, my = getCursorPosition() if not mx then return end -- Relativise mouse position to circle center mx = mx * sx - cx my = my * sy - cy -- Convert angles to vectors local x1, y1 = r * mat
  12. addEventHandler("onClientMarkerHit", root, MKH_OPEN) If you bind this event handler to the local player instead addEventHandler("onClientMarkerHit", localPlayer, MKH_OPEN) The GUI should only open when you hit the marker.
  13. setCameraTarget() To focus camera on player again
  14. The map editor can now remove collisionless world objects, if you toggle "Enable collision patches" in the options. This will also make these models selectable when placed as objects. https://mirror.mtasa.com/mtasa/resources/
  15. Zango


    Try downloading the latest version, from mtasa.com, and run MTADiag again
  • Create New...