Search the Community
Showing results for tags 'Marker'.
-
Hi , in this video I am going to show a simple way how to make a marker on your new server. I will assume that you followed all the steps on how to get your server to work and that you installed Node.js and so on. This is not the best way of doing this but I find it the most simple way. I am also a beginner and I would love to help myself and others who are trying to build their own and unique servers. If you need any other help, please leave a comment. Hope you enjoyed. { To all experts out there, I am sorry, I am just trying to help out the community. }
-
Hello, I am searching for an finished "dlc" where i can use NativeUI to teleport that char wich chooses for example Grove Street. Does sombody know if there is alerady something like that wich i can add easy to my Projekt. If not could maybe someone give me an example how the call would look like wich i need to send so that that player is going to his position he wishes would be great because my Programming abilityes are at the very very start of reding the code understanding it but not beeing able to write it. Thanks in advance for reading and replies
-
Hii, How do i properly access all colshapes serverside so i can access there attributes? I mean i could port the data to a db on create and work with sql😬..? or ad SetValue commands? Is there a true way? i tryed: 1. let colshapeMarkers = []; let colshapecolor = [133,30,62,200] let ChatColorR = "!{"+[255, 0, 0]+"}"; let ChatColorW = "!{"+[255, 255, 255]+"}"; let ServerChatM = '['+ChatColorR+'SERVER'+ChatColorW+'] '; mp.events.addCommand("setv", (player) => { //colshapeMarkers = null; //reseting let colshapesArr = mp.colshapes.toArray(); player.outputChatBox('['+ChatColorR+'SERVER'+ChatColorW+'] '+colshapesArr) colshapesArr.every((colshape) => { player.outputChatBox(ServerChatM+' id of colshape:'+colshape.id); marker = mp.markers.new(1, new mp.Vector3(colshape.x, colshape.y, colshape.z), colshape.range, { direction: new mp.Vector3(colshape.x, colshape.y, colshape.z), rotation: new mp.Vector3(0, 0, 0), color: [133,30,62,200], visible: true, dimension: player.dimension }); }); and: let colshapeMarkers = []; let colshapecolor = [133,30,62,200] let ChatColorR = "!{"+[255, 0, 0]+"}"; let ChatColorW = "!{"+[255, 255, 255]+"}"; let ServerChatM = '['+ChatColorR+'SERVER'+ChatColorW+'] '; mp.events.addCommand("setv", (player) => { //colshapeMarkers = null; //reseting // let colshapesArr = mp.colshapes.toArray(); // player.outputChatBox('['+ChatColorR+'SERVER'+ChatColorW+'] '+colshapesArr) // colshapesArr.every((colshape) => { // player.outputChatBox(ServerChatM+' id of colshape:'+colshape.id); // marker = mp.markers.new(1, new mp.Vector3(colshape.x, colshape.y, colshape.z), colshape.range, // { // direction: new mp.Vector3(colshape.x, colshape.y, colshape.z), // rotation: new mp.Vector3(0, 0, 0), // color: [133,30,62,200], // visible: true, // dimension: player.dimension // }); mp.colshapes.forEach((colshape) => { // Create Markers player.outputChatBox(ServerChatM +colshape.id) marker = mp.markers.new(1, new mp.Vector3(colshape.x, colshape.y, colshape.z), colshape.range, { direction: new mp.Vector3(colshape.x, colshape.y, colshape.z), rotation: new mp.Vector3(0, 0, 0), color: [133,30,62,200], visible: true, dimension: player.dimension }); colshapeMarkers[colshape.id] = marker.id; }); }); -> https://wiki.rage.mp/index.php?title=Pool::toArray
-
What's the problem is that they are not created and displayed. NAPI.Marker.CreateMarker(2, client.Position, client.Position, new Vector3(), 10f, new Color(164, 26, 0), true, 1); NAPI.TextLabel.CreateTextLabel("My Text", client.Position, 10F, 3, 2, new Color(164, 26, 0), false, 2);
-
Hi Guys, says it is possible from the website GTA 5 Mod to insert the Colored Map Blips in RageMP? Would be if someone could answer