Search the Community
Showing results for tags 'Marker'.
Found 3 results
-
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
