DxDrawWiredSphere: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
-- todo
-- todo
</syntaxhighlight>
</syntaxhighlight>
==Requirements==
{{Requirements|n/a|1.5.7-9.20328|}}


==See Also==
==See Also==
{{Drawing_functions}}
{{Drawing_functions}}
[[dxDrawWiredSphere]]
[[dxDrawWiredSphere]]

Revision as of 13:59, 25 October 2020

This function drawn same sphere as /showcol. It provides 4 levels of iterations which mean density of sphere. Adjust radius to iterations to get optimum density of mesh. About 50 spheres with iterations = 4 can cause fps drop.

Syntax

bool dxDrawWiredSphere( float x, float y, float z, float radius, color theColor, float fLineWidth, uint iterations )

Required Arguments

  • x, y, z: A position in world of sphere.
  • radius: A radius of sphere.
  • theColor: A color of sphere from tocolor function.
  • fLineWidth: A width of line
  • iterations : Number 1, 2, 3 or 4. 1 mean low density, 4 mean high.

Returns

Returns a true if the operation was successful, false otherwise.

Example

-- todo

Requirements

Minimum server version n/a
Minimum client version 1.5.7-9.20328

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.5.7-9.20328" />

See Also


dxDrawWiredSphere