Jump to content

Looky

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Looky's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Hi I need help with the password how can I compare them in mta? Imgur: The magic of the Internet that not working output is... INFO: [ [ ] ]
  2. === server=side function markerHit(markerHit,matchingDimension) if (matchingDimension) then -- Make sure the player is in the same dimension as the marker (so they're actually going into it). outputChatBox("You have just entered a marker.",source,255,255,0) -- Output that they are. triggerClientEvent ( source, "startMaking", source, markerdata ) end end addEventHandler("onPlayerMarkerHit", root,markerHit) ---- --Client=side function startMake(data) markerdata = data print(inspect(data)) addEventHandler ("onClientRender", localPlayer, isInMarker ) end addEvent("startMaking", true) addEventHandler("startMaking", localPlayer, startMake) ----- Where I made a mistake?
  3. I have a problem creating a zone in a different position and here is the code: function createZone(posX, posY, posZ, interior, dimension, id) local markerElement = createColCuboid (posX, posY, posZ, 197.5, 92, 30 ) local areasElement = createRadarArea( posX, posY, 300, 200, 255, 255, 255, 90 ) print("test2") setElementInterior(markerElement, interior or 0) setElementDimension(markerElement, dimension or 0) setElementData(markerElement, "id", id or (#zone)+1 ) setElementData(markerElement, "zones", true) --table.insert(zone, {marker = markerElement} ) table.insert(zone, {marker = markerElement} ) end addCommandHandler ( "stworzzone", function (source) local x, y, z = getElementPosition( source ) createZone(z, y+1, z+5, 0, 0) print("test") end) Problem solved addCommandHandler ( "stworzzone", function (source) local x, y, z = getElementPosition( source ) createZone(z, y+1, z+5, 0, 0) --<-- HERE Z xD print("test") end)
×
×
  • Create New...