DxDrawModel3D: Difference between revisions
Jump to navigation
Jump to search
m (Update Arguments) |
m (Update Arguments) |
(No difference)
|
Latest revision as of 20:00, 3 January 2025
Important Note: You can not use this function to draw vehicles and ped |
Important Note: This function doesn't obey any streaming limits, you can draw as many models as you want |
Important Note: You can not render model to render target. |
Syntax
bool dxDrawModel3D( int modelId, float positionX, float positionY, float positionZ, float rotationX, float rotationY, float rotationZ [, float scaleX = 1, float scaleY = 1, float scaleZ = 1, float lighting = 0 ])
Required Arguments
- modelId: object you want to draw, must be regular object, you can not draw vehicles and peds. See Object IDs for a list of model IDs.
- positionX: A floating point number representing the X coordinate on the map.
- positionY: A floating point number representing the Y coordinate on the map.
- positionZ: A floating point number representing the Z coordinate on the map.
- rotationX: A floating point number representing the rotation about the X axis in degrees.
- rotationY: A floating point number representing the rotation about the Y axis in degrees.
- rotationZ : A floating point number representing the rotation about the Z axis in degrees.
Optional Arguments
- scaleX: a float containing the new scale on the X axis
- scaleY: a float containing the new scale on the Y axis
- scaleZ: a float containing the new scale on the Z axis
Returns
Returns true if the operation was successful, false otherwise.
Example
Click to collapse [-]
ClientSimple example
addEventHandler("onClientPreRender", root, function() engineStreamingRequestModel(3276) dxDrawModel3D(3276, -719.64984, 951.26685, 12.13281, 0, 0,90) end)
See Also
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsSize
- dxGetPixelsFormat
- dxGetStatus
- dxGetTextSize
- dxGetTextWidth
- dxGetTexturePixels
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderValue
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource