Skip to content

Commit a5920e6

Browse files
committed
fix indentation and typo
1 parent 9f42eeb commit a5920e6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

VEHICLE/SetTrailerAttachmentEnabled.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ aliases: ["0x2FA2494B47FDD009"]
99
void SET_TRAILER_ATTACHMENT_ENABLED(Vehicle vehicle, BOOL enabled);
1010
```
1111
12-
Sets whether the a trailer can attach to vehicles or not
12+
Sets whether the trailer can attach to vehicles
1313
1414
## Parameters
1515
* **vehicle**: The trailer to set attachment state for
@@ -18,18 +18,18 @@ Sets whether the a trailer can attach to vehicles or not
1818
## Examples
1919
2020
```lua
21-
local trailerModel = GetHashKey('tanker')
22-
local trailerCoordinates = vector3(-323.59, -757.83, 53.25)
23-
local trailerHeading = 247.77
21+
local trailerModel = `tanker`
22+
local trailerCoordinates = vector3(-323.59, -757.83, 53.25)
23+
local trailerHeading = 247.77
2424
25-
RequestModel(trailerModel)
25+
RequestModel(trailerModel)
2626
27-
while not HasModelLoaded(trailerModel) do
28-
Wait(0)
29-
end
27+
while not HasModelLoaded(trailerModel) do
28+
Wait(0)
29+
end
3030
31-
local trailerIndex = CreateVehicle(trailerModel, trailerCoordinates.x, trailerCoordinates.y, trailerCoordinates.z, trailerHeading, true, false)
31+
local trailerIndex = CreateVehicle(trailerModel, trailerCoordinates.x, trailerCoordinates.y, trailerCoordinates.z, trailerHeading, true, false)
3232
33-
SetTrailerAttachmentEnabled(trailerIndex, false)
34-
SetModelAsNoLongerNeeded(trailerModel)
33+
SetTrailerAttachmentEnabled(trailerIndex, false)
34+
SetModelAsNoLongerNeeded(trailerModel)
3535
```

0 commit comments

Comments
 (0)