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. Castillo

    tELEPORT

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

    help

    createMarker bindKey unbindKey isElementWithinMarker onMarkerHit onMarkerLeave
  6. 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.
  7. I mean, the event is never triggered, like is not hitting the marker.
  8. Did it work? or didn't test it yet?
  9. I once read that there was a bug, and the object never hit the marker.
  10. 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.
  11. What does "num_affected_rows" return?
  12. You copied the function source code, right? because math.round is not a native function.
  13. 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
  14. 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
  15. That'll make every ped invulnerable.
  16. You mean every ped?
  17. God mode for the local player: addEventHandler ( "onClientPlayerDamage", localPlayer, cancelEvent ) For vehicle: setVehicleDamageProof ( getPedOccupiedVehicle ( getPlayerFromName ( "TheNameFromThePlayer" ) ), true )
  18. Change the 'root' to 'localPlayer' at triggerServerEvent.
  19. Simple, just attach it with attachElements.
  20. https://github.com/mabako/mta-paradise
  21. Have you tried the MTA Paradise?
×
×
  • Create New...