Dgs3DImageIsAttached

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This functions checks whether or not 3DImage element is attached to another element.

Syntax

bool dgs3DImageIsAttached( dgsElement element )

OOP Syntax Help! I don't understand this!

Method: element:isAttached(...)


Required Arguments

  • element: The dgs 3d image element to check for attachment.

Returns

Returns true if the specified element is attached to another element, false if it is not attached or nil if an improper argument was passed.

Example

This example is making export function to check weather the player is talking or not:

dgs = exports.dgs

function isPlayerTalking(player)
	local player = player or localPlayer;
	return dgs:dgs3DImageIsAttached(icons[player]); -- this table inside another client file .
end 

See Also