TechNoMatic Posted March 21, 2017 Share Posted March 21, 2017 Well,I was watching a YouTube video created by an individual, he mapped a great map and was testing it (probably) but at some point i realized (what is happening) actually, he set some markers in some places which restored his car health back to 100 and sometimes it even spawned another vehicle So,I just wanna ask that how to create such a marker that can restore your car health and respawn a bike or a helicopter Thank You -TechNoMatic Link to comment
itHyperoX Posted March 21, 2017 Share Posted March 21, 2017 createMarker onMarkerHit getPedOccupiedVehicle setElementHealth Link to comment
TechNoMatic Posted March 21, 2017 Author Share Posted March 21, 2017 I don't want code language i just want to create a marker from IG Map Editor Link to comment
External Posted March 21, 2017 Share Posted March 21, 2017 1 hour ago, TechNoMatic said: I don't want code language i just want to create a marker from IG Map Editor You have to code for such thing Link to comment
TechNoMatic Posted March 21, 2017 Author Share Posted March 21, 2017 2 minutes ago, External said: You have to code for such thing I am new to mapping so can u teach me which file i gotta code Link to comment
External Posted March 21, 2017 Share Posted March 21, 2017 3 minutes ago, TechNoMatic said: I am new to mapping so can u teach me which file i gotta code Actually, it's easier to get the position of the place that you want to create the marker in and create it there instead of using map editor Link to comment
NeXuS™ Posted March 21, 2017 Share Posted March 21, 2017 I'll do a thing, which'll do these things for ya. (Stay tuned for tomorrow, working on it hard.) 1 Link to comment
TechNoMatic Posted March 23, 2017 Author Share Posted March 23, 2017 On 3/21/2017 at 13:53, NeXuS™ said: tomorrow Lol wat Link to comment
NeXuS™ Posted March 23, 2017 Share Posted March 23, 2017 It's already done. Just doing some final things to make sure everything works just as it should. 1 Link to comment
TechNoMatic Posted March 26, 2017 Author Share Posted March 26, 2017 On 3/23/2017 at 10:41, NeXuS™ said: It's already done. Just doing some final things to make sure everything works just as it should. Still waiting Link to comment
TechNoMatic Posted March 27, 2017 Author Share Posted March 27, 2017 I need to submit my map before 6 april so ca u please make it quick? Link to comment
NeXuS™ Posted March 27, 2017 Share Posted March 27, 2017 (edited) Publishing it today bud. Gonna be in WIP tho, so it can have bugs. Edited March 27, 2017 by NeXuS™ Link to comment
marty000123 Posted March 27, 2017 Share Posted March 27, 2017 (edited) Not sure what Nexus is doing, but it's quite easy. marker = createMarker ( x, y, z, "cylinder", size, red, green, blue, alpha ) function fixVehicle() local vehicle = getOccupiedVehicle(source) if vehicle then fixVehicle(vehicle) end end addEventHandler("onMarkerHit", getRootElement(), fixVehicle) This is very basic, but it should work. If it doesn't, then please let me know and I'll fix it for you. Questions? Ask! Edited March 27, 2017 by marty000123 Link to comment
NeXuS™ Posted March 27, 2017 Share Posted March 27, 2017 5 minutes ago, marty000123 said: Not sure what Nexus is doing, but it's quite easy. function fixVehicle() local vehicle = getOccupiedVehicle(source) if vehicle then setElementHealth(vehicle, getElementHealth(vehicle), 1000) end end addEventHandler("onPlayerMarkerHit", getRootElement(), fixVehicle) This is very basic, but it should work. If it doesn't, then please let me know and I'll fix it for you. Questions? Ask! I'm doing a whole script that allows you to put down any type of marker (tp, fix, nos, fadecam, etc.), by just a click in the editor res. (I'm not a newbie bud, you can check all those links I have linked in my sign., and also check out the forum for my comments. ) Link to comment
marty000123 Posted March 27, 2017 Share Posted March 27, 2017 1 minute ago, NeXuS™ said: I'm doing a whole script that allows you to put down any type of marker (tp, fix, nos, fadecam, etc.), by just a click in the editor res. (I'm not a newbie bud, you can check all those links I have linked in my sign., and also check out the forum for my comments. ) Oh damn, didn't know you were creating a big resource. Sweet Link to comment
Rondawgb Posted March 29, 2017 Share Posted March 29, 2017 On 3/27/2017 at 14:13, TechNoMatic said: I need to submit my map before 6 april so ca u please make it quick? Just to let you know when you submit your map you will have to submit the resource with it, markers that create and fix vehicles wont save on a .map file. 1 Link to comment
TechNoMatic Posted March 29, 2017 Author Share Posted March 29, 2017 Alright well i knew it lol Link to comment
TechNoMatic Posted April 3, 2017 Author Share Posted April 3, 2017 Bro 3 days left, i have completed the map but i haven't done the markers yet. please make it quick Link to comment
itHyperoX Posted April 5, 2017 Share Posted April 5, 2017 (edited) use @marty000123 code, and when @NeXuS™ done, you just change the code. Edited April 5, 2017 by TheMOG Link to comment
TechNoMatic Posted April 8, 2017 Author Share Posted April 8, 2017 Guys lock this thread now, i lost my position as a mapper 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