Jump to content

[Custom Interiors]


Portside

Recommended Posts

Posted

Hey. I'd like to add my own custom interiors but the thing is, when I add them and make an interior IG it's a blank space. The interior isn't there, I've already converted the file using the SA:MP object converter, but still isn't working. Help?!

  • Moderators
Posted

Could you show us the creation of that interior and a screenshot to really understand your problem ?

I guess your interior is transparent because you didn't set the player's interior id but I'm not really sure.

Regards,

Citizen

  • Moderators
Posted

As I said, the relevant code (creation of the objects, the teleportation code if you did one to go into that interior etc) and a screenshot of what you are calling the "blank space".

  • Moderators
Posted

Ok, we are going slowly, you finally gave me the screenshot, but that one line you pasted here is not enough for me to spot the problem even if I was right about this:

I guess your interior is transparent because you didn't set the player's interior id but I'm not really sure.

So you basically need to use:

setElementInterior 

to the player with the right id.

Please show me the code that is doing the teleportation and the maping (with the markers etc).

For the code, you will find something like this:

function someFunction( hitelement ) 
    --some code here that I need to see 
end 
addEventHandler("onMarkerHit", root, someFunction) 

Posted

What? lol... maybe you haven't noticed but I'm quite noobish at scripting. So I'll just hand you the s_interior_system. It's probably in there.

>CODE REMOVED

  • Moderators
Posted

Yeah I saw some interesting things but it didn't have the code I was expected.

How did you create this interior ? I want everything you did yourself to create that interior please.

Posted

Sure.

First, I mapped the interior through the MTA: Map Editor, I went to an interior, ID 18 I think it was, I can't remember exactly.

Second, I opened the .map file with Notepad++, copied the whole thing and then went to http://convertffs.com/ to convert the file. I copied the converted version.

Third, I went to my interior-system/custom and created a .lua file and placed my converted version of my interior in there.

Fourth, I updated the meta.xml and tested it out.

PS. I also /getpos for my interior entrance and also inserted the co-ordinates.

That's basically what I done.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...