SuperM Posted October 14, 2019 Share Posted October 14, 2019 Hello there, I need some help because I have no clue on how to prevent for example item id 1569 object (ADAM_V_DOOR) from open when punched. If you place it on the map and you punch it, it will open, but when it returns to is original position if you punch it will not open, how can I prevent it from open al the time, I need it to block th entrance and for that it can't move. Link to comment
Moderators IIYAMA Posted October 14, 2019 Moderators Share Posted October 14, 2019 (edited) @SuperM Open your map file in your text editor. Search for the id. And give the node the attribute: frozen="true". (Check if the attribute is already added) Add it like that: (don't copy/past) <object frozen="true"></object> https://wiki.multitheftauto.com/wiki/Element/Object Edited October 14, 2019 by IIYAMA Link to comment
SuperM Posted October 14, 2019 Author Share Posted October 14, 2019 (edited) 12 hours ago, IIYAMA said: @SuperM Open your map file in your text editor. Search for the id. And give the node the attribute: frozen="true". (Check if the attribute is already added) Add it like that: (don't copy/past) <object frozen="true"></object> https://wiki.multitheftauto.com/wiki/Element/Object Hello there and thanks you so much for your help! I still have a problem, at the moment I'm getting the object position from database and the line of code is this one: local Object = createObject(row["objectID"], row["X"], row["Y"], row["Z"], row["RX"], row["RY"], row["RZ"]) and my output to the server is the following one: 1569, 1796, -1744.5, 12.6, 0, 0, 180.5 So if if i was scripting it it should look like this: createObject ( 1569, 1796, -1744.5, 12.6, 0, 0, 180.5 ) How can I add those Frozen parameter to it? I mean I was checking the page https://wiki.multitheftauto.com/wiki/CreateObject and there is no option for it. Edited October 14, 2019 by SuperM 1 Link to comment
SuperM Posted October 14, 2019 Author Share Posted October 14, 2019 (edited) . Edited October 14, 2019 by SuperM Link to comment
JustinMTA Posted October 15, 2019 Share Posted October 15, 2019 Maybe put something like an invisible ped or object behind the door to block it from opening Link to comment
Moderators IIYAMA Posted October 15, 2019 Moderators Share Posted October 15, 2019 8 hours ago, SuperM said: How can I add those Frozen parameter to it? With: https://wiki.multitheftauto.com/wiki/SetElementFrozen 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