- Documentation
- Client functions
- destroyElementPreview
Function
destroyElementPreview
Removes a preview from createElementPreview.
Syntax
bool destroyElementPreview(preview preview)Arguments
previewpreview- The preview.
Returns
true on success.
Example
destroyElementPreview(preview)
See also
createElementPreviewCreates a preview of an element (a vehicle, a player, a ped, an object, a model object) as an image fordxDrawImage, e.g. for a car shop or a wardrobe.falseas the target = the scene from the camera. By default the camera orbits the target so that it fits in the frame.isElementPreviewChecks whether a value is an existing preview fromcreateElementPreview.