local mask = exports.mask -- Import
local imageTexture = dxCreateTexture(...) -- Create your image texture
local maskTexture = dxCreateTexture(...) -- Create your mask texture image
local circleMask = mask:create(imageTexture, maskTexture)
addEventHandler("onClientRender", root, function()
dxDrawImage( px, py, sx, sy, circleMask) -- Draw your mask
end)
Remember to destroy the textures and mask if you are no longer using them.
destroyElement(imageTexture)
destroyElement(maskTexture)
destroyElement(circleMask)
I'm learning English, any spelling mistakes please send me a message.