DxSetAspectRatioAdjustmentEnabled

From Multi Theft Auto: Wiki
Revision as of 19:26, 26 June 2013 by X86dev (talk | contribs)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function DxSetAspectRatioAdjustmentEnabled needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


Todo. This function is default enabled for the customblips resource and does only works during these events: onClientRender, onClientPreRender and onClientHUDRender

Syntax

bool dxSetAspectRatioAdjustmentEnabled ( bool bEnabled [, float fSourceRatio = 4/3 ] )

Required Arguments

  • bEnabled: Should the adjustment be enabled or disabled.

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • fSourceRatio : Todo.

Returns

Returns true when the it was changed successfully, or false otherwise.

Requirements

Minimum server version n/a
Minimum client version 1.3.3-5547

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.3-5547" />

Example

-- Todo

See Also