I try to make a command which create a marker.. But it don't work, some help?
mp.events.addCommand("marker", (player) => {
mp.markers.new(0, new mp.Vector3(-1222.9422607421875, -174.337890625, 39.3251838684082), 20,
{
direction: new mp.Vector3(-101.24121856689453),
rotation: new mp.Vector3(-0.00970909371972084, -0.014882184565067291, -168.3780059814453),
color: [255, 0, 0],
visible: true,
dimension: 0
});
})