Skip to content

Gaimo/mtasa_mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTA:SA Mask

Examples of masks:

Image test:

Image

Result:

Image

How to use?

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)

Tips

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published