Ferriejxl Posted July 19, 2011 Share Posted July 19, 2011 Hi! Im new with scripting on mta and i use a resource mabako-services its making the payn&respray work & ammonition on the server! its only showed on the minimap if u are close to it I learned how i make the icons with Createblip But were i need to place it in? Can i create a resources that i can start thats shows all icons than? or must i place it in the script himself? I dont need all help with it because if somebody do it for me i cant do it for myself lol Srry for my bad english Regards Ferriejxl Link to comment
Twisted Posted July 19, 2011 Share Posted July 19, 2011 EDIT: you need to create a file with the icons placed and name it like icon.lua anything and add it to the meta like this Link to comment
Ferriejxl Posted July 19, 2011 Author Share Posted July 19, 2011 Ok if made the meta.xml, in the format u use the server say's : Could not parse meta! What it means i dont know but i changed it in: <meta> <script src="icons.lua"/> </meta> Now he dont give me the error I create icons.lua with this code : Emmetgun createBlip ( float 1366.7922363281, float -1274.9412841797, float -1274.9412841797, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0 *, float visibleDistance=99999.0, visibleTo = getRootElement()] i start the recourse from the server its running but i dont see the icon in the f11 map What im doing wrong? Link to comment
Castillo Posted July 20, 2011 Share Posted July 20, 2011 Because you got a lot of errors in createBlip function. Emmetgun = createBlip ( 1366.7922363281, -1274.9412841797, -1274.9412841797, 0, 2, 255, 0, 0, 255, 0, 99999, getRootElement()) Link to comment
Ferriejxl Posted July 21, 2011 Author Share Posted July 21, 2011 Ok ok it works! But now he showing his self on the minimap(radar) I want that its only showed on the big f11 map, I tried everything also createblip recources but they all show there blips on both maps Link to comment
Castillo Posted July 22, 2011 Share Posted July 22, 2011 That's because of the visible distance. Emmetgun = createBlip ( 1366.7922363281, -1274.9412841797, -1274.9412841797, 0, 2, 255, 0, 0, 255, 0, 0) Try with that. 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