DriFtyZ Posted May 29, 2017 Share Posted May 29, 2017 I have a question, i want to create a custom interior which will be a garage (or a warehouse in old need for speeds) which the player can interact with his car or select another in there but i don't how to yet any ideas? Link to comment
idarrr Posted May 29, 2017 Share Posted May 29, 2017 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
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