micheal1230 Posted January 18, 2012 Share Posted January 18, 2012 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 Link to comment
sora+ Posted January 18, 2012 Share Posted January 18, 2012 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
Castillo Posted January 18, 2012 Share Posted January 18, 2012 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now