Jump to content

Interior enter and exit


micheal1230

Recommended Posts

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

Link to comment

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