Welcome to the news! Today we are releasing 1.3.4. In this patch we have introduced a few new features and fixed many bugs.
Of those new features includes the ability to play sound effects from the game in 3D or just through a players' speakers.
We have also included a source compiling and encryption option. This allows you to compile and encrypt your lua through MTA’s website. As of 1.3.4 this can be done at https://luac.mtasa.com/ API + Documentation at https://luac.mtasa.com/api/ This feature will be available for all future MTA versions.
Vehicle upgrades now check the model file as well as the list of supported upgrades so that it cannot crash with custom models. All vehicle spoilers are supported by all vehicles that support spoilers now and vehicle upgrades have been tidied up adding some missing/wrong entries.
To download 1.3.4, visit the front page. Many more fixes and additions below in the patch notes. Thanks for reading!
Added function playSFX
Added function playSFX3D
Added function getSFXStatus
Added function setHeliBladeCollisionsEnabled
Added function getHeliBladeCollisionsEnabled
Added function getEventHandlers
Added "shared" export type in meta.xml
Added Lua source encryption option
Added the ability to cancel onClientKey
Added escape to onClientKey (can't be cancelled twice in a row)
Added SettingHUDMatchAspectRatio, SettingAspectRatio to dxGetStatus
Fixed vehicle upgrades
Fixed warpPedIntoVehicle causing desync when two players try to enter at the same time via vehicle_enter and warpPedIntoVehicle
Fixed map editor crash
Fixed debug filename for compiled scripts
Fixed applying weapon mods may remove your weapon
Fixed crash when streaming in tec-9 with a replaced weapon model
Fixed console(F8) input focus begin lost sometimes
Fixed building removal crashing after loading/unloading a model 16 times
Fixed projectile-type weapons messing up ammo count
fixed guiCreateFont fails each second time resource is started
Fixed client ammo desync when using giveWeapon sometimes
Fixed guiLabelGetTextExtent not working with unicode
Fixed onColShapeHit isn't triggered for towed vehicles server side
Fixed GUI scrollpanes and scrollbars don't trigger onClientMouseEnter/Leave
Fixed warpPedIntoVehicle after cancelEvent() of onVehicleStartEnter causes network trouble
Fixed onPedWasted not triggered, when ped died because the vehicle he was in, exploded.
Fixed server createColPolygon
Fixed a crash when destroying an object in onClientColShapeHit / onClientElementColShapeHit
Fixed lightweight sync packet being misread on the client sometimes
Fixed getLatentEventHandles sometimes returning false instead of an empty table
Fixed setAccountData clips the digits after the decimal point
Fixed peds/players being removed from vehicles that fall through the ground
Added sfxbrowser resource
Fixed instant reload exploits for the reload resource
Fixed 'Use LODs' option in the map editor resource
Fixed various things in admin, acpanel, freeroam, parachute and race resources