cheeck 4 Posted April 10, 2018 (edited) Всем привет! Столкнулся с проблемой в Marker::setColor или getColor, пожалуйста, объясните как у конкретного маркера изменить цвет с помощью этого метода, когда цвет у маркера уже задан вот так? (Заранее спасибо) => mp.markers.new(1, new mp.Vector3(-427.517, 1123.620, 325.8544), 1, { direction: new mp.Vector3(-427.517, 1123.620, 325.8544), rotation: 0, color: [ 212, 83, 0, 255], visible: true, dimension: 0 }); Я новичок в JS и NodeJS, и без пояснений не могу понять как это работает). Edited April 10, 2018 by cheeck Share this post Link to post Share on other sites
TurEduard 8 Posted April 20, 2018 let myMarker = mp.markers.new(1, new mp.Vector3(-427.517, 1123.620, 325.8544), 1, { direction: new mp.Vector3(-427.517, 1123.620, 325.8544), rotation: 0, color: [ 212, 83, 0, 255], visible: true, dimension: 0 }); myMarker.getColor(); myMarker.setColor(r, g, b, a); Вот как можно обратиться к уже созданному маркеру. Share this post Link to post Share on other sites