M MY Multiplayer: Wiki
Side
Kind

engineGetElementStencil

Client

Gives the stencil value a vehicle, ped or object is marked with.

int engineGetElementStencil(element element)

Parameters

NameTypeDescription
elementelementA vehicle, ped, player or object.

Returns

Two values: the mark (0 when there is none) and whether it is seeThrough.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local value, seeThrough = engineGetElementStencil(vehicle)
    outputDebugString(value .. " " .. tostring(seeThrough))
end

See also