Skip to content

Commit

Permalink
Update SetTransformToSubmarineUsesAlternateInput.md
Browse files Browse the repository at this point in the history
Correct parameter typo and add missing examples header.
  • Loading branch information
4mmonium authored Dec 15, 2023
1 parent 77203ed commit 9b75b17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions VEHICLE/SetTransformToSubmarineUsesAlternateInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ aliases: ["0x41B9FB92EDED32A6", "_SET_UNK_BOOL_0x102_FOR_SUBMARINE_VEHICLE_TASK"

```c
// 0x41B9FB92EDED32A6
void SET_TRANSFORM_TO_SUBMARINE_USES_ALTERNATE_INPUT(Vehicle vehicle, bool toogle);
void SET_TRANSFORM_TO_SUBMARINE_USES_ALTERNATE_INPUT(Vehicle vehicle, bool toggle);
```
This native changes the key used to transform a vehicle into submarine mode. When set to true, the transformation key switches from the default raise/lower convertible roof key (usually 'H') to the special vehicle transformation key (usually 'X').
## Parameters
* **vehicle**: The vehicle for which the submarine mode should be configured.
* **toogle**: A boolean switch to enable/disable the use of alternate input.
* **toggle**: A boolean switch to enable/disable the use of alternate input.
## Examples
```lua
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false) -- Get the vehicle in which the player is currently seated
-- Set the key for submarine mode transformation to special vehicle transform (X by default)
Expand Down

0 comments on commit 9b75b17

Please sign in to comment.