Skip to content

Commit f76952b

Browse files
authored
[hedit] Fix steering lock glitch on bikes and motorcycles
This is required because of it being abused on servers (it can produce really weird glitches, ghost/godmode scenario's) so all server owners are required to update. It's a workaround until the underlying issue is fixed: multitheftauto/mtasa-blue#494
1 parent d252b9f commit f76952b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

[gameplay]/hedit/client/utils.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ function prepareHandlingValue ( vehicle, property, value )
509509
value = 13.04
510510
end
511511

512+
-- Workaround for this bug: https://github.com/multitheftauto/mtasa-blue/issues/494
513+
if (property == "steeringLock") and (getVehicleType(vehicle) == "Bike" or getVehicleType(vehicle) == "BMX") and tonumber(value) < 1 then
514+
value = 1
515+
end
516+
512517
setVehicleHandling ( vehicle, property, value )
513518

514519
return true

0 commit comments

Comments
 (0)