### Install MugShotBase64 in server.cfg Source: https://github.com/baziforyou/mugshotbase64/blob/main/README.md Add this line to your server.cfg to start the resource. Place it in the correct order relative to other resources that depend on it. ```bash start MugShotBase64 ``` -------------------------------- ### GetMugShotBase64 export usage Source: https://github.com/baziforyou/mugshotbase64/blob/main/README.md Call the client export to get the base64 string of a ped's mugshot. The first parameter is the ped handle, and the second is a boolean for transparency. Returns a string. ```lua local MugShot = exports["MugShotBase64"]:GetMugShotBase64(PlayerPedId(), true) ``` -------------------------------- ### GetMugShotBase64 Source: https://github.com/baziforyou/mugshotbase64/blob/main/README.md Client-side export that returns the base64 string of a ped's mugshot. ```APIDOC ## GetMugShotBase64 ### Description Returns the base64 encoded string of the mugshot for a given ped. The export is a client-side function that can be used to get the mugshot as a base64 string, which can be cached as text anywhere (JSON, SQL, TXT). It supports any ped, not just the local player. ### Method CLIENT EXPORT ### Endpoint GetMugShotBase64 ### Parameters #### Exported Function Arguments - **Ped Hanel** (handel) - Required - The ped handle to get the mugshot for. - **bool(Transpert)** (boolean) - Required - Whether to use a transparent background. ### Request Example ```lua local MugShot = exports["MugShotBase64"]:GetMugShotBase64(PlayerPedId(), true) ``` ### Response #### Success Response - **string** - The base64 encoded string of the mugshot. #### Response Example ```lua local MugShot = exports["MugShotBase64"]:GetMugShotBase64(PlayerPedId(), true) ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.