Jump to content

[QUESTION] About Interiors


DriFtyZ

Recommended Posts

You can use 

setElementInterior
setElementDimension

See here for the list of Interior IDs 

This is example how to move a player using pick up hit:

local warehouse = createPickup ( 10.0, 10.0, 10.0, 3, 1273) -- Create a House Pick Up

-- Event if Player hit the pick up, we move that player to interior
-- According to Interior list, Warehouse 1 is in coordinate {1405.3120, -8.2928, 1000.9130} and in interior id 1
addEventHandler ( "onPickupHit", warehouse, 
	function(player)
		setElementPosition(player, 1405.3120, -8.2928, 1000.9130)
		setElementInterior(player, 1)
		setElementDimension(player, 1)
	end 
)

 

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