amx icon indicating copy to clipboard operation
amx copied to clipboard

Model Peview

Open Disinterpreter opened this issue 5 years ago • 2 comments

Function name PlayerTextDrawSetPreviewModel(playerid, text[], modelindex) PlayerTextDrawSetPreviewRot(playerid, PlayerText:text[], Float:fRotX, Float:fRotY, Float:fRotZ) PlayerTextDrawSetPreviewVehCol(playerid, text[], color1, color2)

Describe the function PlayerTextDrawSetPreviewModel - Sets a player textdraw 2D preview sprite of a specified model ID. PlayerTextDrawSetPreviewRot - Sets the rotation and zoom of a 3D model preview player-textdraw. PlayerTextDrawSetPreviewVehCol - Set the color of a vehicle in a player-textdraw model preview (if a vehicle is shown).

Equivalent in MTA -

Additional information https://www.open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewModel https://www.open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewRot https://www.open.mp/docs/scripting/functions/PlayerTextDrawSetPreviewVehCol

THERE AREN'T PREPARED IMAGES ONLY IN-GAME VISUALIZATION OF OBJECTS

Disinterpreter avatar Oct 12 '20 13:10 Disinterpreter

Probably can be implemented via https://wiki.multitheftauto.com/wiki/Resource:Object_preview

Disinterpreter avatar Oct 12 '20 16:10 Disinterpreter

This needs CFont in order to be 1:1. Lots of issues revolving SA-MP portability are mainly related to the lack of CFont in MTA. I will try to do my own implementation in Lua, but I really don't know what the chances are of it looking remotely similar to SA-MP.

colistro123 avatar Oct 15 '20 19:10 colistro123