Added vehicle interaction menu

This commit is contained in:
hydrant
2018-12-23 21:32:45 +01:00
parent 2191e1e201
commit bffb44387b
16 changed files with 724 additions and 30 deletions

View File

@@ -36,17 +36,25 @@ mp.events.add('render', () => {
direction = global.gameplayCam.getDirection();
coords = global.gameplayCam.getCoord();
coords.x = coords.x.toFixed(2);
coords.y = coords.y.toFixed(2);
coords.z = coords.z.toFixed(2);
direction.x = direction.x.toFixed(2);
direction.y = direction.y.toFixed(2);
direction.z = direction.z.toFixed(2);
mp.game.graphics.drawText(`Coords: ${JSON.stringify(coords)}`, [0.5, 0.005], {
font: 0,
color: [255, 255, 255, 185],
scale: [0.3, 0.3],
outline: true,
outline: true
});
mp.game.graphics.drawText(`pointAtCoord: ${JSON.stringify(pointingAt(fly.point_distance).position)}`, [0.5, 0.025], {
font: 0,
color: [255, 255, 255, 185],
scale: [0.3, 0.3],
outline: true,
outline: true
});
if (controls.isControlJustPressed(0, controlsIds.F5)) {