Jump to content

Interior enter and exit


micheal1230

Recommended Posts

Posted

Can someone give me a step by step guide on how to make your own marker to enter a interior in a custom place with the normal int system. What I mean is like make a interior anywhere like add a interior to the place I mapped

Posted

First of all access your maps' folder located in the resources folder.

Next make a .lua file with notepad (just rename the file client.lua)

Then open up your meta with notepad and add this line:

  
<script src="client.lua" type="client" /> 
  

Add this into the client.lua

  
 player = getLocalPlayer() 
  gMe7 = getLocalPlayer() 
      
    function int() 
    WTF = createMarker( x, y, z, "arrow", size, r, b, g, a) 
  
    end 
       
    function MarkerHit ( hitPlayer, matchingDimension ) 
    player = getLocalPlayer( hitPlayer ) 
    if hitPlayer ~= gMe7 then return end 
    if source == WTF then 
    setElementPosition(player, x, y, z) 
  
    end 
    end 
      
    addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), int ) 
    addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) 
  

And you're pretty much done , i hope you understand the basics..

Posted

I think he's talking about the resource that comes with MTA called "interiors", if so, then just copy one current interiors and change the teleport details.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...