Sofan Posted July 1, 2022 Posted July 1, 2022 Good afternoon, I recently started mapping and ran into an unknown problem. I made an interior, uploaded it to the server, it only works if you enter it through the portal, if you try to teleport into it or fly into it using noclip, this will not work, the player will fall through the interior. Maybe someone can help me with this, call me or just explain what the problem is, I will be very grateful. I can send interior files if you are willing to help. I am attaching a video demonstrating the problem.(https://drive.google.com/file/d/1fHwgvg2nty1b81rKkCtVuGPytZ_NSxUp/view?usp=sharing)
Blue Velvet Posted July 6, 2022 Posted July 6, 2022 (edited) With which JS code are you loading the interior? You must Request the interior IPL. I leave you an example: CLIENTSIDE function loadInt(x,y,z, ipl) { var interior = mp.game.interior.getInteriorAtCoords(x,y,z); //pkt wo der spieler im interior spawnt mp.game.streaming.requestIpl('"'+ipl+'"'); // interior name(IPL) mp.game.interior.refreshInterior(interior); } mp.events.add('cInterior:loadInt', loadInt); SERVERSIDE mp.events.addCommand('testint', (player, allText, x, y, z, iplNAME) => { let position = new mp.Vector3(parseFloat(x), parseFloat(y), parseFloat(z)); player.position = position; player.call("cInterior:loadInt",[position.x, position.y, position.z, iplNAME]); }); Edited July 6, 2022 by Blue Velvet
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