- Documentation
- Client functions
- isElementPreview
Function
isElementPreview
Checks whether a value is an existing preview from createElementPreview.
Syntax
bool isElementPreview(mixed value)Arguments
valuemixed- The value.
Returns
true for a preview.
Example
if isElementPreview(preview) then destroyElementPreview(preview) end
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.destroyElementPreviewRemoves a preview fromcreateElementPreview.