Jump to content

Search the Community

Showing results for tags 'store'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. Olá, coloquei uma loja mas queria que ela fosse acessada somente na dimensão "0", caso alguém vá nela pela dimensão "1" não conseguirá entrar nela. Está desta forma: local entrada = createMarker(810.5, -1616.246, 14.500, 'arrow', 1.0, 255, 69, 0, 0) ---> Obs Marcador da Entrada local blip createBlip (802.636, -1617.986, 19.383, 29) -------> Icone no mapa function entrar( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) then setElementDimension(hitElement, 1) ------> Local Spawn dentro do interior setElementInterior(hitElement, 10, 364.534, -73.934, 1001.508) ------> Local Spawn dentro do interior end end addEventHandler( "onMarkerHit", entrada , entrar ) -------------------------------------------------- local saida = createMarker(362.848, -75.144, 1002.400, 'arrow', 1.0, 255, 69, 0, 1) ---------> Obs Marcador da Saida local ped = createPed (167, 376.508, -65.849, 1001.508, 180) --------> Npc setElementDimension(saida, 1) setElementInterior(saida, 10) setElementDimension(ped, 1) setElementInterior(ped, 10) function sair( hitElement, matchingDimension ) if getElementType( hitElement ) == "player" and not isPedInVehicle(hitElement) then setElementDimension(hitElement, 0) -----> Spawn Saida setElementInterior(hitElement, 0, 794.292, -1624.858, 13.391) -----> Spawn Saida end end addEventHandler( "onMarkerHit", saida , sair )
  2. My problem is that it's not storing the data in the local mg = {}. The debugscript says: bad argumentum @ 'setElememtData' expected element at argument 1, got table Thanks in advance! function mg_pos() createMG(-2861.9, 19.4, 15.83, 0, 0, 188) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), mg_pos) --MG 1 local mg = {} function createMG(posX,posY,posZ,rotX,rotY,rotZ) local weapon_base = createObject ( 1897, posX,posY,posZ,rotX,rotY,rotZ) local weapon = createObject ( 356, 0,0,0) attachElements ( weapon, weapon_base, -0.55, 0, 0.75, 0, 0, 0) setElementData ( mg, "weapon_base", weapon_base) setElementData ( mg, "weapon", weapon) end
×
×
  • Create New...