Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ServerAPI/nodejs/Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

* [playerConnect](docs/ServerAPI/nodejs/events/playerConnect.md)
* [playerDisconnect](docs/ServerAPI/nodejs/events/playerDisconnect.md)
* [playerDead](docs/ServerAPI/nodejs/events/playerDead.md)
* [playerDeath](docs/ServerAPI/nodejs/events/playerDeath.md)

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### playerDead
### playerDeath

**Description**: This event is called when a player dies.

```javascript
alt.on('playerDead', (player, killer, weapon) => {
alt.on('playerDeath', (player, killer, weapon) => {

});
```
Expand All @@ -24,7 +24,7 @@ alt.on('playerDead', (player, killer, weapon) => {
#### Example Usage

```javascript
alt.on('playerDead', (player, killer, weapon) => {
alt.on('playerDeath', (player, killer, weapon) => {
alt.log(`${killer.name} has killed ${player.name}`);
});
```
2 changes: 1 addition & 1 deletion docs/ServerAPI/nodejs/functions/createBlipForCoords.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Description**: Creates a Blip at the given coordinate

```javascript
createBlipForCoords(type, posX, posY, posZ, heading)
alt.createBlipForCoords(type, posX, posY, posZ, heading)
```

#### Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/ServerAPI/nodejs/functions/createCheckpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Description**: Creates a checkpoint

```javascript
createCheckpoint(type, x, y, z, radius, height, r, g, b, a)
alt.createCheckpoint(type, x, y, z, radius, height, r, g, b, a)
```

#### Parameters
Expand Down
4 changes: 2 additions & 2 deletions docs/ServerAPI/nodejs/functions/createVehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Description**: Creates a new vehicle entity

```javascript
createVehicle(model, posX, posY, posZ, heading)
alt.createVehicle(model, posX, posY, posZ, heading)
```

#### Parameters
Expand All @@ -24,5 +24,5 @@ createVehicle(model, posX, posY, posZ, heading)
#### Example Usage

```javascript
//todo
alt.createVehicle("faction", 414.20746, -972.52386, 29.44237, 0);
```
2 changes: 1 addition & 1 deletion docs/ServerAPI/nodejs/functions/removeEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Description**: -

```javascript
removeEntity(entity)
alt.removeEntity(entity)
```

#### Parameters
Expand Down