mtamaniak Posted March 5, 2013 Share Posted March 5, 2013 Hi to all, I asked almost everyone I know (those who know to script in Lua) how to fix this. Pretty annoying issue, I don't know why It happens. I made script with removeWorldModel bool. Here is it: function start() --here should be models that needs to get deleted-- end addEventHandler("onResourceStart", getResourceRootElement(), start) It looks like this above. removeWorldModel is like this for me [model ID] [10] [x] [y] [z] and nothing more. It deletes buildings, but when I reconnect they are back and buildings I loaded in my map are inside those that need to get deleted. Meta.xml looks like this: "Bull" type="script" name="Remove Objs"/> My MTA version is newest one, I tried the object remover resource, but I don't like it, prefer more the scripting way becuz some of objects can't get deleted. I'll be thankful If you help me. Link to comment
Castillo Posted March 5, 2013 Share Posted March 5, 2013 Try making your script client side. Link to comment
mtamaniak Posted March 6, 2013 Author Share Posted March 6, 2013 You mean to set the script to client in meta file? I tried in meta and the problem still exists. Link to comment
Castillo Posted March 6, 2013 Share Posted March 6, 2013 Yes, and also change your event name to: "onClientResourceStart". Link to comment
mtamaniak Posted March 6, 2013 Author Share Posted March 6, 2013 Working! Thank you solidsnake. 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