Skip to content

Commit

Permalink
32 (#63)
Browse files Browse the repository at this point in the history
* feat: disable cam, actions, etc. closes #58

* feat: attach blips to entities like players or vehicles

* docs: update changelog
  • Loading branch information
Stuyk authored Jun 16, 2024
1 parent e6e54d6 commit 77a4788
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/api/server/controllers/blip.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ blip.update({ pos: new alt.Vector3(0, 0, 0), text: 'New Text!' });
blip.destroy();
```

Additionally, you can attach a blip to any entity like a player, or a vehicle like this.

```ts
const blip = Rebar.controllers.useBlipGlobal({
color: 6,
pos: player.pos,
shortRange: true,
sprite: 128,
text: `${player.name}`,
});

blip.attach(player);
```

## Local Markers

A local blip can only been seen by a single player.
Expand Down
13 changes: 13 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## Version 32

### Code Changes

- Added function to attach blips to entities, because alt:V's one is broken
- Additionally, when a blip or the entity becomes invalid the blip is automatically destroyed.

### Docs Changes

- Updated blip documentation to cover attachments

---

## Version 31

### Code Changes
Expand Down

0 comments on commit 77a4788

Please sign in to comment.