Jump to content

Creating server marker inside an event


Recommended Posts

Hi guys!

I have a global server variable names treasureMarker

I try to create marker inside the event like this.

Its creating, I checked it by console.log(treasureMarker);

But.. I cant see this marker. Its invisible. Can you advice me something?

var treasureMarker;

	treasureMarker = mp.markers.new(1,new mp.Vector3(treasurePoint.x, treasurePoint.y, treasurePoint.z),1.0,{//Vector coords working well.
    "color": [239, 22, 14, 1],
    "direction": 0,
    "dimension": 0,
    "visible": true



Solved. Problem was in color.

Link to comment
Share on other sites

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...