Jump to content

Help.


Recommended Posts

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

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 by marty000123
Link to comment
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. :D)

Link to comment
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. :D)

Oh damn, didn't know you were creating a big resource. Sweet ;)

Link to comment
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.

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...