Mooza Posted January 3, 2011 Share Posted January 3, 2011 (edited) Hello guys, I need some help about scripting. I have a race map, and I would like to put a few blips on the map. I want to make it visible for all players. I have tried something in the .lua file, but it doesnt work in the game. Here is that I have done: function resource_starts_1 () creatBlip ( 4262.7416992188, -1555.828125, 43.400787353516, 3, 2, 0, 0, 0, 255, 0, 99999.0 ) creatBlip ( 4651.177734375, -1554.4113769531, 25.819654464722, 11, 2, 0, 0, 0, 255, 0, 99999.0 ) creatBlip ( 5051.4858398438, -1583.2768554688, 57.828727722168, 23, 2, 0, 255, 0, 255, 0, 99999.0 ) creatBlip ( 5006.5146484375, -1283.5164794922, 85.884986877441, 33, 2, 0, 0, 0, 255, 0, 99999.0 ) creatBlip ( 4856.8994140625, -1413.4611816406, 85.478088378906, 41, 2, 255, 0, 0, 255, 0, 99999.0 ) creatBlip ( 4680.8935546875, -1610.9580078125, 104.85077667236, 48, 2, 0, 0, 0, 255, 0, 99999.0 ) creatBlip ( 4667.119140625, -1711.8497314453, 110.76747131348, 53, 2, 0, 0, 0, 255, 0, 99999.0 ) end addEventHandler ( "onClientResourceStart", getRootElement(), resource_starts_1 ) Can you tell me what did I do wrong or what is needed yet? Edited January 3, 2011 by Guest Link to comment
Castillo Posted January 3, 2011 Share Posted January 3, 2011 <meta> <script src="blips.lua" type="server"/> </meta> createBlip ( 4262.7416992188, -1555.828125, 43.400787353516, 3 ) createBlip ( 4651.177734375, -1554.4113769531, 25.819654464722, 11 ) createBlip ( 5051.4858398438, -1583.2768554688, 57.828727722168, 23 ) createBlip ( 5006.5146484375, -1283.5164794922, 85.884986877441, 33 ) createBlip ( 4856.8994140625, -1413.4611816406, 85.478088378906, 41 ) createBlip ( 4680.8935546875, -1610.9580078125, 104.85077667236, 48 ) createBlip ( 4667.119140625, -1711.8497314453, 110.76747131348, 53 ) i think should work. P.S: please use LUA tags Link to comment
eAi Posted January 3, 2011 Share Posted January 3, 2011 Or add them to a map file? It's faster, uses less bandwidth, neater and how it's meant to be done. https://wiki.multitheftauto.com/wiki/Blip Link to comment
Mooza Posted January 4, 2011 Author Share Posted January 4, 2011 these don't work, I got an error and map is unplayable Link to comment
eAi Posted January 5, 2011 Share Posted January 5, 2011 Did the error just say "Error" or did it say something more specific that might indicate what the problem was? Link to comment
Mooza Posted January 5, 2011 Author Share Posted January 5, 2011 when I try to open the resource in my map editor, it kicks me from the game; it says: error with downloading files. Link to comment
Mooza Posted January 5, 2011 Author Share Posted January 5, 2011 maybe there is a problem with the numerals I think.. but I have already tried the blips with all their options (size, ordering, visible distance), then only with the icon ID, and etc. but any of them doesn't work Link to comment
Castillo Posted January 5, 2011 Share Posted January 5, 2011 they worked fine with me, also the script is not kicking you from the server. 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