From 2d14f7fedc53b2f265a8e07abafb2a5affbbc091 Mon Sep 17 00:00:00 2001 From: Robert Gabriel Nisipeanu <16354517+robertnisipeanu@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:16:09 +0300 Subject: [PATCH 1/5] Updated methods --- docs/ServerAPI/csharp/Vehicle.md | 570 +++++++++++++++++++++++++++++++ 1 file changed, 570 insertions(+) diff --git a/docs/ServerAPI/csharp/Vehicle.md b/docs/ServerAPI/csharp/Vehicle.md index 8f2be57..d7d86e2 100644 --- a/docs/ServerAPI/csharp/Vehicle.md +++ b/docs/ServerAPI/csharp/Vehicle.md @@ -63,6 +63,24 @@ ## Methods +### GetId + +```csharp +static ushort GetId(IntPtr vehiclePointer) +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ------ | ----------- | +| vehiclePointer | `IntPtr` | | + +#### Return + +**Type**: `ushort` + +**Description**: - + ### GetMod ```csharp @@ -386,3 +404,555 @@ void SetSyncedMetaData(string key, object value) #### Return None + + +### GetDoorState + +```csharp +byte GetDoorState(byte doorId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| doorId | `byte` | | + +#### Return + +**Type**: `byte` + +**Description**: + + +### SetDoorState + +```csharp +void SetDoorState(byte doorId, byte state) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| doorId | `byte` | | +| state | `byte` | | + +#### Return + +None + + +### IsWindowOpened + +```csharp +bool IsWindowOpened(byte windowId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| doorId | `byte` | | +| state | `byte` | | + +#### Return + +None + + +### SetWindowOpened + +```csharp +void SetWindowOpened(byte windowId, bool state) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | +| state | `bool` | | + +#### Return + +None + + +### IsWheelBurst + +```csharp +bool IsWheelBurst(byte wheelId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + +### SetWheelBurst + +```csharp +void SetWheelBurst(byte wheelId, bool state) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | +| state | `bool` | | + +#### Return + +None + + +### DoesWheelHasTire + +```csharp +bool DoesWheelHasTire(byte wheelId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + + +### SetWheelHasTire + +```csharp +void SetWheelHasTire(byte wheelId, bool state) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | +| state | `bool` | | + +#### Return + +None + + +### GetWheelHealth + +```csharp +float GetWheelHealth(byte wheelId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | + +#### Return + +**Type**: `float` + +**Description**: + + +### SetWheelHealth + +```csharp +void SetWheelHealth(byte wheelId, float health) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| wheelId | `byte` | | +| health | `float` | | + +#### Return + +None + + +### GetPartDamageLevel + +```csharp +byte GetPartDamageLevel(byte partId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| partId | `byte` | | + +#### Return + +**Type**: `byte` + +**Description**: + + +### SetPartDamageLevel + +```csharp +void SetPartDamageLevel(byte partId, byte damage) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| partId | `byte` | | +| damage | `byte` | | + +#### Return + +None + + +### GetPartBulletHoles + +```csharp +byte GetPartBulletHoles(byte partId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| partId | `byte` | | + +#### Return + +**Type**: `byte` + +**Description**: + + +### SetPartBulletHoles + +```csharp +void SetPartBulletHoles(byte partId, byte shootsCount) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| partId | `byte` | | +| shootsCount | `byte` | | + +#### Return + +None + + +### IsLightDamaged + +```csharp +bool IsLightDamaged(byte lightId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| lightId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + + +### SetLightDamaged + +```csharp +void SetLightDamaged(byte lightId, bool isDamaged) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| lightId | `byte` | | +| isDamaged | `bool` | | + +#### Return + +None + + + +### IsWindowDamaged + +```csharp +bool IsWindowDamaged(byte windowId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + + +### SetWindowDamaged + +```csharp +void SetWindowDamaged(byte windowId, bool isDamaged) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | +| isDamaged | `bool` | | + +#### Return + +None + + +### IsSpecialLightDamaged + +```csharp +bool IsSpecialLightDamaged(byte specialLightId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| specialLightId | `byte` | | + +#### Return + +**Type**: `bool` + +**Description**: + + +### SetSpecialLightDamaged + +```csharp +void SetSpecialLightDamaged(byte specialLightId, bool isDamaged) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| specialLightId | `byte` | | +| isDamaged | `bool` | | + +#### Return + +None + + +### GetArmoredWindowHealth + +```csharp +float GetArmoredWindowHealth(byte windowId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | + +#### Return + +**Type**: `float` + +**Description**: + + +### SetArmoredWindowHealth + +```csharp +void SetArmoredWindowHealth(byte windowId, float health) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | +| health | `float` | | + +#### Return + +None + + +### GetArmoredWindowShootCount + +```csharp +byte GetArmoredWindowShootCount(byte windowId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | + +#### Return + +**Type**: `byte` + +**Description**: + + +### SetArmoredWindowShootCount + +```csharp +void SetArmoredWindowShootCount(byte windowId, byte count) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| windowId | `byte` | | +| count | `byte` | | + +#### Return + +None + + + + +### GetBumperDamageLevel + +```csharp +byte GetBumperDamageLevel(byte bumperId) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| bumperId | `byte` | | + +#### Return + +**Type**: `byte` + +**Description**: + + +### SetBumperDamageLevel + +```csharp +void SetBumperDamageLevel(byte bumperId, byte damageLevel) +``` + + + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ----------- | ----------- | +| bumperId | `byte` | | +| damageLevel | `byte` | | + +#### Return + +None From 0a37a0abf18302b7c2585d166d0dd5f22babb7e7 Mon Sep 17 00:00:00 2001 From: Robert Gabriel Nisipeanu <16354517+robertnisipeanu@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:34:37 +0300 Subject: [PATCH 2/5] Updated properties --- docs/ServerAPI/csharp/Player.md | 67 ++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/docs/ServerAPI/csharp/Player.md b/docs/ServerAPI/csharp/Player.md index b39378f..f82051f 100644 --- a/docs/ServerAPI/csharp/Player.md +++ b/docs/ServerAPI/csharp/Player.md @@ -2,33 +2,46 @@ ### Properties -| Property Name | Type | Description | -| ------------- | ------------ | ----------- | -| Vehicle | `IVehicle` | | -| AimPosition | `Position` | | -| Ammo | `ushort` | | -| Armor | `ushort` | | -| HeadRotation | `Rotation` | | -| Health | `ushort` | | -| IsAiming | `bool` | | -| IsConnected | `bool` | | -| IsDead | `bool` | | -| IsInRagdoll | `bool` | | -| IsInVehicle | `bool` | | -| IsJumping | `bool` | | -| IsReloading | `bool` | | -| IsShooting | `bool` | | -| MoveSpeed | `float` | | -| Name | `string` | | -| Seat | `byte` | | -| Weapon | `uint` | | -| Type | `EntityType` | | -| Dimension | `ushort` | | -| Exists | `bool` | | -| Id | `ushort` | | -| NativePointer | `IntPtr` | | -| Position | `Position` | | -| Rotation | `Rotation` | | +| Property Name | Type | Access | Description | +| ------------- | ------------ | ----------- | ----------- | +| Name | `string` | get | | +| Model | `IVehicle` | get, set | | +| Health | `ushort` | get, set | | +| MaxHealth | `ushort` | get, set | | +| Armor | `ushort` | get, set | | +| MaxArmor | `ushort` | get, set | | +| IsDead | `bool` | get | | +| SocialClubId | `ulong` | get | | +| HardwareIdHash | `ulong` | get | | +| HardwareIdExHash | `ulong` | get | | +| AuthToken | `string` | get | | +| IsConnected | `bool` | get | | +| Ping | `uint` | get | | +| Ip | `string` | get | | +| IsInVehicle | `bool` | get | | +| Vehicle | `IVehicle` | get | | +| Seat | `byte` | get | | +| AimPosition | `Position` | get | | +| Weapon | `uint` | get | | +| CurrentWeapon | `uint` | get, set | | +| Ammo | `ushort` | get | | +| IsAiming | `bool` | get | | +| EntityAimingAt | `IEntity` | get | | +| EntityAimOffset | `Position` | get | | +| IsInRagdoll | `bool` | get | | +| IsReloading | `bool` | get | | +| IsShooting | `bool` | get | | +| MoveSpeed | `float` | get | | +| IsJumping | `bool` | get | | +| IsFlashlightActive | `bool` | get | | +| Type | `EntityType` | | | +| Dimension | `ushort` | | | +| Exists | `bool` | | | +| Id | `ushort` | | | +| NativePointer | `IntPtr` | | | +| Position | `Position` | | | +| Rotation | `Rotation` | | | +| HeadRotation | `Rotation` | get | | ## Methods From b205a3a7bef2bf70d4e61c82c28fff850584a4b6 Mon Sep 17 00:00:00 2001 From: Robert Gabriel Nisipeanu <16354517+robertnisipeanu@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:42:12 +0300 Subject: [PATCH 3/5] Updated methods --- docs/ServerAPI/csharp/Player.md | 140 ++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/docs/ServerAPI/csharp/Player.md b/docs/ServerAPI/csharp/Player.md index f82051f..d1d0db2 100644 --- a/docs/ServerAPI/csharp/Player.md +++ b/docs/ServerAPI/csharp/Player.md @@ -175,6 +175,146 @@ None +### GiveWeapon + +```csharp +void GiveWeapon(uint weapon, int ammo, bool selectWeapon); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weapon | `uint` | | +| ammo | `int` | | +| selectWeapon | `bool` | | + +#### Return + +None + + +### RemoveWeapon + +```csharp +void RemoveWeapon(uint weapon); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weapon | `uint` | | + +#### Return + +None + + +### RemoveAllWeapons + +```csharp +void RemoveAllWeapons(); +``` + +#### Parameters + +None + +#### Return + +None + + +### AddWeaponComponent + +```csharp +void AddWeaponComponent(uint weapon, uint weaponComponent); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weapon | `uint` | | +| weaponComponent | `uint` | | + +#### Return + +None + + +### RemoveWeaponComponent + +```csharp +void RemoveWeaponComponent(uint weapon, uint weaponComponent); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weapon | `uint` | | +| weaponComponent | `uint` | | + +#### Return + +None + + +### GetCurrentWeaponComponents + +```csharp +void GetCurrentWeaponComponents(out uint[] weaponComponents); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weaponComponents | **out** `uint[]` | | + +#### Return + +None + + +### SetWeaponTintIndex + +```csharp +void SetWeaponTintIndex(uint weapon, byte tintIndex); +``` + +#### Parameters + +| Parameter Name | Type | Description | +| -------------- | ---------- | ----------- | +| weapon | `uint` | | +| tintIndex | `byte` | | + +#### Return + +None + + +### GetCurrentWeaponTintIndex + +```csharp +byte GetCurrentWeaponTintIndex(); +``` + +#### Parameters + +None + +#### Return + +**Type**: `byte` + +**Description**: + + + ### GetData ```csharp From 3b0db6fd97ae6d4d016a75e1b288bded5b9745e7 Mon Sep 17 00:00:00 2001 From: Robert Gabriel Nisipeanu <16354517+robertnisipeanu@users.noreply.github.com> Date: Tue, 23 Jul 2019 18:11:37 +0300 Subject: [PATCH 4/5] Updated properties + methods --- docs/ServerAPI/csharp/Player.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ServerAPI/csharp/Player.md b/docs/ServerAPI/csharp/Player.md index d1d0db2..9de769b 100644 --- a/docs/ServerAPI/csharp/Player.md +++ b/docs/ServerAPI/csharp/Player.md @@ -5,7 +5,7 @@ | Property Name | Type | Access | Description | | ------------- | ------------ | ----------- | ----------- | | Name | `string` | get | | -| Model | `IVehicle` | get, set | | +| Model | `uint` | get, set | | | Health | `ushort` | get, set | | | MaxHealth | `ushort` | get, set | | | Armor | `ushort` | get, set | | @@ -35,7 +35,7 @@ | IsJumping | `bool` | get | | | IsFlashlightActive | `bool` | get | | | Type | `EntityType` | | | -| Dimension | `ushort` | | | +| Dimension | `short` | | | | Exists | `bool` | | | | Id | `ushort` | | | | NativePointer | `IntPtr` | | | From 19a6cfadca2f92651f747809734b3f4a63866db8 Mon Sep 17 00:00:00 2001 From: Robert Gabriel Nisipeanu <16354517+robertnisipeanu@users.noreply.github.com> Date: Tue, 23 Jul 2019 18:12:06 +0300 Subject: [PATCH 5/5] Updated methods --- docs/ServerAPI/csharp/Vehicle.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/docs/ServerAPI/csharp/Vehicle.md b/docs/ServerAPI/csharp/Vehicle.md index d7d86e2..100b283 100644 --- a/docs/ServerAPI/csharp/Vehicle.md +++ b/docs/ServerAPI/csharp/Vehicle.md @@ -63,24 +63,6 @@ ## Methods -### GetId - -```csharp -static ushort GetId(IntPtr vehiclePointer) -``` - -#### Parameters - -| Parameter Name | Type | Description | -| -------------- | ------ | ----------- | -| vehiclePointer | `IntPtr` | | - -#### Return - -**Type**: `ushort` - -**Description**: - - ### GetMod ```csharp