Skip to content

Commit

Permalink
update docs description
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychoShock committed Dec 25, 2023
1 parent e76ef06 commit 937a2b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
18 changes: 5 additions & 13 deletions PED/GivePedHelmet.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@ ns: PED
void GIVE_PED_HELMET(Ped ped, BOOL cannotRemove, int helmetFlag, int textureIndex);
```
```
PoliceMotorcycleHelmet 1024
RegularMotorcycleHelmet 4096
FiremanHelmet 16384
PilotHeadset 32768
PilotHelmet 65536
--
p2 is generally 4096 or 16384 in the scripts. p1 varies between 1 and 0.
```
Give the ped a helmet.
## Parameters
* **ped**:
* **cannotRemove**:
* **helmetFlag**:
* **textureIndex**:
* **ped**: Ped index.
* **cannotRemove**: Can remove helmet or not.
* **helmetFlag**: Flag for the helmet.
* **textureIndex**: Texture index.
3 changes: 2 additions & 1 deletion PED/IsPedTryingToEnterALockedVehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ ns: PED
BOOL IS_PED_TRYING_TO_ENTER_A_LOCKED_VEHICLE(Ped ped);
```
If the ped is attempting to enter a locked vehicle.
## Parameters
* **ped**:
* **ped**: Ped index.
## Return value
5 changes: 3 additions & 2 deletions PED/RemovePedHelmet.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ ns: PED
void REMOVE_PED_HELMET(Ped ped, BOOL instantly);
```
Remove a helmet from a ped
## Parameters
* **ped**:
* **instantly**:
* **ped**: Ped index.
* **instantly**: Force to remove.
8 changes: 4 additions & 4 deletions PED/SetPedHelmet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ ns: PED

```c
// 0x560A43136EB58105 0xED366E53
void SET_PED_HELMET(Ped ped, BOOL canWearHelmet);
void SET_PED_HELMET(Ped ped, BOOL enable);
```
Adjusts the preference for a ped to utilize a helmet.
## Parameters
* **ped**:
* **canWearHelmet**:
* **ped**: Ped index.
* **enable**: If can wear helmet or not.

0 comments on commit 937a2b9

Please sign in to comment.