cheeck Posted April 10, 2018 Share 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 Link to comment Share on other sites More sharing options...
TurEduard Posted April 20, 2018 Share 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); Вот как можно обратиться к уже созданному маркеру. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now