Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No, you would need to make your own system.
  2. Use a timer, instead of 1000, put 120000 and instead of 1, put 0 which is infinite times.
  3. You're welcome.
  4. Castillo

    tELEPORT

    createMarker -- Creates a marker. getElementType -- Check element type. setElementPosition -- Sets an element position. onMarkerHit
  5. viewtopic.php?f=91&t=42540 Read the last post.
  6. Castillo

    help

    createMarker bindKey unbindKey isElementWithinMarker onMarkerHit onMarkerLeave
  7. What I'm saying is that there's a bug on MTA that causes the object not to trigger the event "onMarkerHit" when being moved by moveObject.
  8. I mean, the event is never triggered, like is not hitting the marker.
  9. Did it work? or didn't test it yet?
  10. I once read that there was a bug, and the object never hit the marker.
  11. local query = dbQuery ( database, "SELECT * FROM characters" ) local result, num_affected_rows, errmsg = dbPoll ( query, -1 ) for _, row in ipairs(result) do for k, v in pairs(row) do outputChatBox(tostring(k)..", "..tostring(v)) end end Try that.
  12. What does "num_affected_rows" return?
  13. You copied the function source code, right? because math.round is not a native function.
  14. You can use math.floor to remove all decimals, or use this function to leave just 2 decimals or how much you want. https://wiki.multitheftauto.com/wiki/Math.round
  15. You're welcome.
  16. function randomMarker ( ) local markers = xmlLoadFile ( "zaladunki.xml" ) if ( markers ) then local childs = xmlNodeGetChildren ( markers ) local randomIndex = math.random ( #childs ) local child = childs [ randomIndex ] if ( child ) then -- Do something end end end
  17. That'll make every ped invulnerable.
  18. You're welcome.
  19. You mean every ped?
  20. God mode for the local player: addEventHandler ( "onClientPlayerDamage", localPlayer, cancelEvent ) For vehicle: setVehicleDamageProof ( getPedOccupiedVehicle ( getPlayerFromName ( "TheNameFromThePlayer" ) ), true )
  21. You're welcome.
  22. Change the 'root' to 'localPlayer' at triggerServerEvent.
  23. Simple, just attach it with attachElements.
  24. https://github.com/mabako/mta-paradise
  25. Have you tried the MTA Paradise?
×
×
  • Create New...