# Table of Contents - [User Information | Shark Services - Docs](#user-information-shark-services-docs) - [Server Information | Shark Services - Docs](#server-information-shark-services-docs) - [Get Username | Shark Services - Docs](#get-username-shark-services-docs) - [Get Subscription | Shark Services - Docs](#get-subscription-shark-services-docs) - [Get User Language | Shark Services - Docs](#get-user-language-shark-services-docs) - [Fetch Players Name | Shark Services - Docs](#fetch-players-name-shark-services-docs) - [Resources | Shark Services - Docs](#resources-shark-services-docs) - [Get Server Info | Shark Services - Docs](#get-server-info-shark-services-docs) - [Get PC Username | Shark Services - Docs](#get-pc-username-shark-services-docs) - [Fetch Players Count | Shark Services - Docs](#fetch-players-count-shark-services-docs) - [Resource Injection | Shark Services - Docs](#resource-injection-shark-services-docs) - [Get Available Resources | Shark Services - Docs](#get-available-resources-shark-services-docs) - [Stop Resource | Shark Services - Docs](#stop-resource-shark-services-docs) - [Misc | Shark Services - Docs](#misc-shark-services-docs) - [Remove Resource Nui | Shark Services - Docs](#remove-resource-nui-shark-services-docs) - [Is Resource Injection Available | Shark Services - Docs](#is-resource-injection-available-shark-services-docs) - [Get Clipboard Text | Shark Services - Docs](#get-clipboard-text-shark-services-docs) - [Quit Game | Shark Services - Docs](#quit-game-shark-services-docs) - [Get Cursor Position | Shark Services - Docs](#get-cursor-position-shark-services-docs) - [Get Discord Info | Shark Services - Docs](#get-discord-info-shark-services-docs) - [Request Ragdoll | Shark Services - Docs](#request-ragdoll-shark-services-docs) - [Set Clipboard Text | Shark Services - Docs](#set-clipboard-text-shark-services-docs) - [Open URL | Shark Services - Docs](#open-url-shark-services-docs) - [Is Console Open | Shark Services - Docs](#is-console-open-shark-services-docs) - [Friendly Fire Allowed | Shark Services - Docs](#friendly-fire-allowed-shark-services-docs) - [Statebags | Shark Services - Docs](#statebags-shark-services-docs) - [Weapon Size | Shark Services - Docs](#weapon-size-shark-services-docs) - [Executor State | Shark Services - Docs](#executor-state-shark-services-docs) - [Is Key Just Pressed | Shark Services - Docs](#is-key-just-pressed-shark-services-docs) - [Force Key Press | Shark Services - Docs](#force-key-press-shark-services-docs) - [Is Key Pressed | Shark Services - Docs](#is-key-pressed-shark-services-docs) - [Input | Shark Services - Docs](#input-shark-services-docs) - [Get Variable | Shark Services - Docs](#get-variable-shark-services-docs) - [Disable All Hooks | Shark Services - Docs](#disable-all-hooks-shark-services-docs) - [Get Native Hash | Shark Services - Docs](#get-native-hash-shark-services-docs) - [Block Game Event | Shark Services - Docs](#block-game-event-shark-services-docs) - [Does Variable Exist | Shark Services - Docs](#does-variable-exist-shark-services-docs) - [Scripting | Shark Services - Docs](#scripting-shark-services-docs) - [Hook Native For Resource | Shark Services - Docs](#hook-native-for-resource-shark-services-docs) - [Restore Native | Shark Services - Docs](#restore-native-shark-services-docs) - [Hook Native | Shark Services - Docs](#hook-native-shark-services-docs) - [Give Pickup Reward | Shark Services - Docs](#give-pickup-reward-shark-services-docs) - [Is Native Hooked | Shark Services - Docs](#is-native-hooked-shark-services-docs) - [Cloud | Shark Services - Docs](#cloud-shark-services-docs) - [Execute JS | Shark Services - Docs](#execute-js-shark-services-docs) - [Give Pickup Reward All | Shark Services - Docs](#give-pickup-reward-all-shark-services-docs) - [Add Hook Callback | Shark Services - Docs](#add-hook-callback-shark-services-docs) - [Sync Camera Position | Shark Services - Docs](#sync-camera-position-shark-services-docs) - [Save Variable | Shark Services - Docs](#save-variable-shark-services-docs) - [Http Request | Shark Services - Docs](#http-request-shark-services-docs) - [Play Sound | Shark Services - Docs](#play-sound-shark-services-docs) - [Request Http | Shark Services - Docs](#request-http-shark-services-docs) - [Exploits | Shark Services - Docs](#exploits-shark-services-docs) - [Async Request Http | Shark Services - Docs](#async-request-http-shark-services-docs) - [Send Damage | Shark Services - Docs](#send-damage-shark-services-docs) - [Get Text Width | Shark Services - Docs](#get-text-width-shark-services-docs) - [Drawing Imports | Shark Services - Docs](#drawing-imports-shark-services-docs) - [Import Font | Shark Services - Docs](#import-font-shark-services-docs) - [Font Awesome | Shark Services - Docs](#font-awesome-shark-services-docs) - [Import Multi Images | Shark Services - Docs](#import-multi-images-shark-services-docs) - [Import Images | Shark Services - Docs](#import-images-shark-services-docs) - [Get Key Information | Shark Services - Docs](#get-key-information-shark-services-docs) - [Seller API | Shark Services - Docs](#seller-api-shark-services-docs) - [Reset User HWID | Shark Services - Docs](#reset-user-hwid-shark-services-docs) - [Drawing | Shark Services - Docs](#drawing-shark-services-docs) - [Draw Shadow Rect | Shark Services - Docs](#draw-shadow-rect-shark-services-docs) - [Draw Text | Shark Services - Docs](#draw-text-shark-services-docs) - [Clip Rect | Shark Services - Docs](#clip-rect-shark-services-docs) - [Generate Keys | Shark Services - Docs](#generate-keys-shark-services-docs) - [Change User Password | Shark Services - Docs](#change-user-password-shark-services-docs) - [Draw Gradient Rect | Shark Services - Docs](#draw-gradient-rect-shark-services-docs) - [Draw Circle | Shark Services - Docs](#draw-circle-shark-services-docs) - [Draw Border Rect | Shark Services - Docs](#draw-border-rect-shark-services-docs) - [Draw Rect | Shark Services - Docs](#draw-rect-shark-services-docs) - [Get User Information | Shark Services - Docs](#get-user-information-shark-services-docs) - [Draw Image | Shark Services - Docs](#draw-image-shark-services-docs) - [Draw Shadow Circle | Shark Services - Docs](#draw-shadow-circle-shark-services-docs) - [Change User Username | Shark Services - Docs](#change-user-username-shark-services-docs) - [Change Order | Shark Services - Docs](#change-order-shark-services-docs) - [Draw Line | Shark Services - Docs](#draw-line-shark-services-docs) - [Cursor Drawing | Shark Services - Docs](#cursor-drawing-shark-services-docs) - [User Blacklist | Shark Services - Docs](#user-blacklist-shark-services-docs) --- # User Information | Shark Services - Docs [Get Usernamechevron-right](https://docs.sharksoftwares.com.br/user-information/get-username) [Get Subscriptionchevron-right](https://docs.sharksoftwares.com.br/user-information/get-subscription) [Get PC Usernamechevron-right](https://docs.sharksoftwares.com.br/user-information/get-pc-username) [Get User Languagechevron-right](https://docs.sharksoftwares.com.br/user-information/get-user-language) [PreviousShark Executorchevron-left](https://docs.sharksoftwares.com.br/) [NextGet Usernamechevron-right](https://docs.sharksoftwares.com.br/user-information/get-username) --- # Server Information | Shark Services - Docs [Fetch Players Countchevron-right](https://docs.sharksoftwares.com.br/server-information/fetch-players-count) [Fetch Players Namechevron-right](https://docs.sharksoftwares.com.br/server-information/fetch-players-name) [Get Server Infochevron-right](https://docs.sharksoftwares.com.br/server-information/get-server-info) [PreviousGet User Languagechevron-left](https://docs.sharksoftwares.com.br/user-information/get-user-language) [NextFetch Players Countchevron-right](https://docs.sharksoftwares.com.br/server-information/fetch-players-count) --- # Get Username | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/user-information/get-username#syntax) **Syntax** -------------------------------------------------------------------------------------------------- Copy SharkAPI.GetUsername() -> String [hashtag](https://docs.sharksoftwares.com.br/user-information/get-username#return) **Return** -------------------------------------------------------------------------------------------------- circle-check String (user name) [hashtag](https://docs.sharksoftwares.com.br/user-information/get-username#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------ Copy local username = SharkAPI.GetUsername() [PreviousUser Informationchevron-left](https://docs.sharksoftwares.com.br/user-information) [NextGet Subscriptionchevron-right](https://docs.sharksoftwares.com.br/user-information/get-subscription) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/user-information/get-username#syntax) * [Return](https://docs.sharksoftwares.com.br/user-information/get-username#return) * [Usage Example](https://docs.sharksoftwares.com.br/user-information/get-username#usage-example) --- # Get Subscription | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/user-information/get-subscription#syntax) **Syntax** ------------------------------------------------------------------------------------------------------ Copy SharkAPI.GetSubscription() -> String [hashtag](https://docs.sharksoftwares.com.br/user-information/get-subscription#return) **Return** ------------------------------------------------------------------------------------------------------ circle-check String (For example: 21/12/2025) [hashtag](https://docs.sharksoftwares.com.br/user-information/get-subscription#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------------- Copy local subscription = SharkAPI.GetSubscription() print("Subscription:", subscription) [PreviousGet Usernamechevron-left](https://docs.sharksoftwares.com.br/user-information/get-username) [NextGet PC Usernamechevron-right](https://docs.sharksoftwares.com.br/user-information/get-pc-username) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/user-information/get-subscription#syntax) * [Return](https://docs.sharksoftwares.com.br/user-information/get-subscription#return) * [Usage Example](https://docs.sharksoftwares.com.br/user-information/get-subscription#usage-example) --- # Get User Language | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/user-information/get-user-language#syntax) **Syntax** ------------------------------------------------------------------------------------------------------- Copy SharkAPI.GetUserDefaultLanguage() -> String [hashtag](https://docs.sharksoftwares.com.br/user-information/get-user-language#return) **Return** ------------------------------------------------------------------------------------------------------- circle-check String (Returns the user's PC language) [hashtag](https://docs.sharksoftwares.com.br/user-information/get-user-language#usage-example) Usage Example ----------------------------------------------------------------------------------------------------------------- Copy local lang = SharkAPI.GetUserDefaultLanguage() print(lang == "pt-BR") [PreviousGet PC Usernamechevron-left](https://docs.sharksoftwares.com.br/user-information/get-pc-username) [NextServer Informationchevron-right](https://docs.sharksoftwares.com.br/server-information) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/user-information/get-user-language#syntax) * [Return](https://docs.sharksoftwares.com.br/user-information/get-user-language#return) * [Usage Example](https://docs.sharksoftwares.com.br/user-information/get-user-language#usage-example) --- # Fetch Players Name | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#syntax) **Syntax** ---------------------------------------------------------------------------------------------------------- Copy SharkAPI.GetServerName() -> String [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#return) **Return** ---------------------------------------------------------------------------------------------------------- circle-check String (Current server name) [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------------- Copy local serverName = SharkAPI.GetServerName() print("Name:", serverName) [PreviousFetch Players Countchevron-left](https://docs.sharksoftwares.com.br/server-information/fetch-players-count) [NextGet Server Infochevron-right](https://docs.sharksoftwares.com.br/server-information/get-server-info) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#syntax) * [Return](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#return) * [Usage Example](https://docs.sharksoftwares.com.br/server-information/fetch-players-name#usage-example) --- # Resources | Shark Services - Docs [Resource Injectionchevron-right](https://docs.sharksoftwares.com.br/resources/resource-injection) [Is Resource Injection Availablechevron-right](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available) [Get Available Resourceschevron-right](https://docs.sharksoftwares.com.br/resources/get-available-resources) [Stop Resourcechevron-right](https://docs.sharksoftwares.com.br/resources/stop-resource) [Remove Resource Nuichevron-right](https://docs.sharksoftwares.com.br/resources/remove-resource-nui) [PreviousGet Server Infochevron-left](https://docs.sharksoftwares.com.br/server-information/get-server-info) [NextResource Injectionchevron-right](https://docs.sharksoftwares.com.br/resources/resource-injection) Last updated 16 days ago --- # Get Server Info | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/server-information/get-server-info#syntax) **Syntax** ------------------------------------------------------------------------------------------------------- Copy SharkAPI.GetServerInfo() -> Object [hashtag](https://docs.sharksoftwares.com.br/server-information/get-server-info#return) **Return** ------------------------------------------------------------------------------------------------------- circle-check Object (Server information) [hashtag](https://docs.sharksoftwares.com.br/server-information/get-server-info#usage-example) Usage Example ----------------------------------------------------------------------------------------------------------------- Copy local serverInfo = SharkAPI.GetServerInfo() print("Server information:", json.encode(serverInfo, { indent = true })) [PreviousFetch Players Namechevron-left](https://docs.sharksoftwares.com.br/server-information/fetch-players-name) [NextResourceschevron-right](https://docs.sharksoftwares.com.br/resources) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/server-information/get-server-info#syntax) * [Return](https://docs.sharksoftwares.com.br/server-information/get-server-info#return) * [Usage Example](https://docs.sharksoftwares.com.br/server-information/get-server-info#usage-example) --- # Get PC Username | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/user-information/get-pc-username#syntax) **Syntax** ----------------------------------------------------------------------------------------------------- Copy SharkAPI.GetPcUsername() -> String [hashtag](https://docs.sharksoftwares.com.br/user-information/get-pc-username#return) **Return** ----------------------------------------------------------------------------------------------------- circle-check String (Returns the user logged in) [hashtag](https://docs.sharksoftwares.com.br/user-information/get-pc-username#usage-example) Usage Example --------------------------------------------------------------------------------------------------------------- Copy local user = SharkAPI.GetPcUsername() [PreviousGet Subscriptionchevron-left](https://docs.sharksoftwares.com.br/user-information/get-subscription) [NextGet User Languagechevron-right](https://docs.sharksoftwares.com.br/user-information/get-user-language) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/user-information/get-pc-username#syntax) * [Return](https://docs.sharksoftwares.com.br/user-information/get-pc-username#return) * [Usage Example](https://docs.sharksoftwares.com.br/user-information/get-pc-username#usage-example) --- # Fetch Players Count | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#syntax) **Syntax** ----------------------------------------------------------------------------------------------------------- Copy SharkAPI.GetServerPlayersCount() -> String [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#return) **Return** ----------------------------------------------------------------------------------------------------------- circle-check String (Number of players in the city) [hashtag](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#usage-example) Usage Example --------------------------------------------------------------------------------------------------------------------- Copy local players = SharkAPI.GetServerPlayersCount() print("Players:", players) [PreviousServer Informationchevron-left](https://docs.sharksoftwares.com.br/server-information) [NextFetch Players Namechevron-right](https://docs.sharksoftwares.com.br/server-information/fetch-players-name) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#syntax) * [Return](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#return) * [Usage Example](https://docs.sharksoftwares.com.br/server-information/fetch-players-count#usage-example) --- # Resource Injection | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/resources/resource-injection#syntax) **Syntax** ------------------------------------------------------------------------------------------------- Copy SharkAPI.Inject(resourceName, code [, directory]) [hashtag](https://docs.sharksoftwares.com.br/resources/resource-injection#return) **Return** ------------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/resources/resource-injection#usage-example) Usage Example ----------------------------------------------------------------------------------------------------------- Copy -- Common injection: -- Runs the code in the target resource without a specific file. SharkAPI.Inject("vrp", [[\ print("Hello World!")\ ]]) -- File-specific injection: -- Injects the code into a specific file of the resource. SharkAPI.Inject("vrp", [[\ print("Hello World:", GetCurrentResourceName())\ ]], "@@vrp/client/player_state.lua") [PreviousResourceschevron-left](https://docs.sharksoftwares.com.br/resources) [NextIs Resource Injection Availablechevron-right](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available) Last updated 16 days ago --- # Get Available Resources | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/resources/get-available-resources#syntax) **Syntax** ------------------------------------------------------------------------------------------------------ Copy SharkAPI.GetLoadedResources() -> Array [hashtag](https://docs.sharksoftwares.com.br/resources/get-available-resources#return) **Return** ------------------------------------------------------------------------------------------------------ circle-check Array (List of resources that can be injected) [hashtag](https://docs.sharksoftwares.com.br/resources/get-available-resources#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------------- Copy for _, resourceName in pairs(SharkAPI.GetLoadedResources()) do SharkAPI.Inject(resourceName, [[\ print("Hello World:", GetCurrentResourceName())\ ]]) end [PreviousIs Resource Injection Availablechevron-left](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available) [NextStop Resourcechevron-right](https://docs.sharksoftwares.com.br/resources/stop-resource) Last updated 16 days ago --- # Stop Resource | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/resources/stop-resource#syntax) **Syntax** -------------------------------------------------------------------------------------------- Copy SharkAPI.StopResource(resourceName) [hashtag](https://docs.sharksoftwares.com.br/resources/stop-resource#return) **Return** -------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the resource was stopped correctly) [hashtag](https://docs.sharksoftwares.com.br/resources/stop-resource#usage-example) Usage Example ------------------------------------------------------------------------------------------------------ Copy SharkAPI.StopResource("vrp") [PreviousGet Available Resourceschevron-left](https://docs.sharksoftwares.com.br/resources/get-available-resources) [NextRemove Resource Nuichevron-right](https://docs.sharksoftwares.com.br/resources/remove-resource-nui) Last updated 16 days ago --- # Misc | Shark Services - Docs [Get Clipboard Textchevron-right](https://docs.sharksoftwares.com.br/misc/get-clipboard-text) [Set Clipboard Textchevron-right](https://docs.sharksoftwares.com.br/misc/set-clipboard-text) [Get Cursor Positionchevron-right](https://docs.sharksoftwares.com.br/misc/get-cursor-position) [Get Discord Infochevron-right](https://docs.sharksoftwares.com.br/misc/get-discord-info) [Quit Gamechevron-right](https://docs.sharksoftwares.com.br/misc/quit-game) [Friendly Fire Allowedchevron-right](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed) [Request Ragdollchevron-right](https://docs.sharksoftwares.com.br/misc/request-ragdoll) [Statebagschevron-right](https://docs.sharksoftwares.com.br/misc/statebags) [Open URLchevron-right](https://docs.sharksoftwares.com.br/misc/open-url) [Executor Statechevron-right](https://docs.sharksoftwares.com.br/misc/executor-state) [Is Console Openchevron-right](https://docs.sharksoftwares.com.br/misc/is-console-open) [Weapon Sizechevron-right](https://docs.sharksoftwares.com.br/misc/weapon-size) [Sync Camera Positionchevron-right](https://docs.sharksoftwares.com.br/misc/sync-camera-position) [Play Soundchevron-right](https://docs.sharksoftwares.com.br/misc/play-sound) [PreviousRemove Resource Nuichevron-left](https://docs.sharksoftwares.com.br/resources/remove-resource-nui) [NextGet Clipboard Textchevron-right](https://docs.sharksoftwares.com.br/misc/get-clipboard-text) --- # Remove Resource Nui | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/resources/remove-resource-nui#syntax) **Syntax** -------------------------------------------------------------------------------------------------- Copy SharkAPI.RemoveResourceNui(resourceName) [hashtag](https://docs.sharksoftwares.com.br/resources/remove-resource-nui#return) **Return** -------------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/resources/remove-resource-nui#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------ Copy SharkAPI.RemoveResourceNui("hud") [PreviousStop Resourcechevron-left](https://docs.sharksoftwares.com.br/resources/stop-resource) [NextMiscchevron-right](https://docs.sharksoftwares.com.br/misc) Last updated 16 days ago --- # Is Resource Injection Available | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available#syntax) **Syntax** -------------------------------------------------------------------------------------------------------------- Copy SharkAPI.IsInjectionAvailable() -> Boolean [hashtag](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available#return) **Return** -------------------------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the injection is loaded and ready to use) [hashtag](https://docs.sharksoftwares.com.br/resources/is-resource-injection-available#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------------------ Copy if (not SharkAPI.IsInjectionAvailable()) then print("Injection failed") else SharkAPI.Inject("vrp", [[\ print("Hello World!")\ ]]) end [PreviousResource Injectionchevron-left](https://docs.sharksoftwares.com.br/resources/resource-injection) [NextGet Available Resourceschevron-right](https://docs.sharksoftwares.com.br/resources/get-available-resources) Last updated 16 days ago --- # Get Clipboard Text | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#syntax) **Syntax** -------------------------------------------------------------------------------------------- Copy SharkAPI.GetClipboardText() -> String [hashtag](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#return) **Return** -------------------------------------------------------------------------------------------- circle-check String (Clipboard content) [hashtag](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#usage-example) Usage Example ------------------------------------------------------------------------------------------------------ Copy local clipboard = SharkAPI.GetClipboardText() print(clipboard) [PreviousMiscchevron-left](https://docs.sharksoftwares.com.br/misc) [NextSet Clipboard Textchevron-right](https://docs.sharksoftwares.com.br/misc/set-clipboard-text) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/get-clipboard-text#usage-example) --- # Quit Game | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/quit-game#syntax) **Syntax** ----------------------------------------------------------------------------------- Copy SharkAPI.QuitGame(reason) [hashtag](https://docs.sharksoftwares.com.br/misc/quit-game#return) **Return** ----------------------------------------------------------------------------------- circle-check None (Game closes) [hashtag](https://docs.sharksoftwares.com.br/misc/quit-game#usage-example) Usage Example --------------------------------------------------------------------------------------------- Copy SharkAPI.QuitGame("Banned") [PreviousGet Discord Infochevron-left](https://docs.sharksoftwares.com.br/misc/get-discord-info) [NextFriendly Fire Allowedchevron-right](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/quit-game#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/quit-game#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/quit-game#usage-example) --- # Get Cursor Position | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/get-cursor-position#syntax) **Syntax** --------------------------------------------------------------------------------------------- Copy SharkAPI.GetCursorX() -> Float SharkAPI.GetCursorY() -> Float [hashtag](https://docs.sharksoftwares.com.br/misc/get-cursor-position#return) **Return** --------------------------------------------------------------------------------------------- circle-check Float [hashtag](https://docs.sharksoftwares.com.br/misc/get-cursor-position#usage-example) Usage Example ------------------------------------------------------------------------------------------------------- Copy local cursorX = SharkAPI.GetCursorX() local cursorY = SharkAPI.GetCursorY() [PreviousSet Clipboard Textchevron-left](https://docs.sharksoftwares.com.br/misc/set-clipboard-text) [NextGet Discord Infochevron-right](https://docs.sharksoftwares.com.br/misc/get-discord-info) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/get-cursor-position#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/get-cursor-position#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/get-cursor-position#usage-example) --- # Get Discord Info | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/get-discord-info#syntax) **Syntax** ------------------------------------------------------------------------------------------ Copy SharkAPI.GetDiscordInfo() -> String, String [hashtag](https://docs.sharksoftwares.com.br/misc/get-discord-info#return) **Return** ------------------------------------------------------------------------------------------ circle-check `username` (discord username) `id` (discord id) [hashtag](https://docs.sharksoftwares.com.br/misc/get-discord-info#usage-example) Usage Example ---------------------------------------------------------------------------------------------------- Copy -- Discord: local username, id = SharkAPI.GetDiscordInfo() -- Discord Canary: local username, id = SharkAPI.GetDiscordCanaryInfo() -- Discord PTB: local username, id = SharkAPI.GetDiscordPTBInfo() [PreviousGet Cursor Positionchevron-left](https://docs.sharksoftwares.com.br/misc/get-cursor-position) [NextQuit Gamechevron-right](https://docs.sharksoftwares.com.br/misc/quit-game) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/get-discord-info#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/get-discord-info#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/get-discord-info#usage-example) --- # Request Ragdoll | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/request-ragdoll#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.RequestRagdoll(ped) [hashtag](https://docs.sharksoftwares.com.br/misc/request-ragdoll#return) **Return** ----------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/request-ragdoll#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy SharkAPI.RequestRagdoll(GetPlayerPed(...)) [PreviousFriendly Fire Allowedchevron-left](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed) [NextStatebagschevron-right](https://docs.sharksoftwares.com.br/misc/statebags) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/request-ragdoll#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/request-ragdoll#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/request-ragdoll#usage-example) --- # Set Clipboard Text | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#syntax) **Syntax** -------------------------------------------------------------------------------------------- Copy SharkAPI.SetClipboardText(text) [hashtag](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#return) **Return** -------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#usage-example) Usage Example ------------------------------------------------------------------------------------------------------ Copy SharkAPI.SetClipboardText("Hello World") [PreviousGet Clipboard Textchevron-left](https://docs.sharksoftwares.com.br/misc/get-clipboard-text) [NextGet Cursor Positionchevron-right](https://docs.sharksoftwares.com.br/misc/get-cursor-position) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/set-clipboard-text#usage-example) --- # Open URL | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/open-url#syntax) **Syntax** ---------------------------------------------------------------------------------- Copy SharkAPI.OpenURL(url) [hashtag](https://docs.sharksoftwares.com.br/misc/open-url#return) **Return** ---------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/open-url#usage-example) Usage Example -------------------------------------------------------------------------------------------- Copy SharkAPI.OpenURL("https://google.com/") [PreviousStatebagschevron-left](https://docs.sharksoftwares.com.br/misc/statebags) [NextExecutor Statechevron-right](https://docs.sharksoftwares.com.br/misc/executor-state) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/open-url#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/open-url#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/open-url#usage-example) --- # Is Console Open | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/is-console-open#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.IsConsoleOpen() -> Boolean [hashtag](https://docs.sharksoftwares.com.br/misc/is-console-open#return) **Return** ----------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the fivem console is open) [hashtag](https://docs.sharksoftwares.com.br/misc/is-console-open#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy local isOpen = SharkAPI.IsConsoleOpen() [PreviousExecutor Statechevron-left](https://docs.sharksoftwares.com.br/misc/executor-state) [NextWeapon Sizechevron-right](https://docs.sharksoftwares.com.br/misc/weapon-size) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/is-console-open#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/is-console-open#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/is-console-open#usage-example) --- # Friendly Fire Allowed | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#syntax) **Syntax** ----------------------------------------------------------------------------------------------- Copy SharkAPI.IsFriendlyFireAllowed() -> Boolean [hashtag](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#return) **Return** ----------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if friendly fire is currently enabled) (Getter for: [https://docs.fivem.net/natives/?\_0xF808475FA571D823arrow-up-right](https://docs.fivem.net/natives/?_0xF808475FA571D823) ) [hashtag](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy local friendlyFireAllowed = SharkAPI.IsFriendlyFireAllowed() print("Is friendly fire allowed:", tostring(friendlyFireAllowed)) [PreviousQuit Gamechevron-left](https://docs.sharksoftwares.com.br/misc/quit-game) [NextRequest Ragdollchevron-right](https://docs.sharksoftwares.com.br/misc/request-ragdoll) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/friendly-fire-allowed#usage-example) --- # Statebags | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/statebags#syntax) **Syntax** ----------------------------------------------------------------------------------- Copy SharkAPI.GetStateBags() -> Array SharkAPI.GetGlobalStateBags() -> Array [hashtag](https://docs.sharksoftwares.com.br/misc/statebags#return) **Return** ----------------------------------------------------------------------------------- circle-check Array: \["state1", "state2"\] [hashtag](https://docs.sharksoftwares.com.br/misc/statebags#usage-example) Usage Example --------------------------------------------------------------------------------------------- Copy -- Local Player Statebags: local statebags = SharkAPI.GetStateBags() -- Global Statebags: local globalStatebags = SharkAPI.GetGlobalStateBags() [PreviousRequest Ragdollchevron-left](https://docs.sharksoftwares.com.br/misc/request-ragdoll) [NextOpen URLchevron-right](https://docs.sharksoftwares.com.br/misc/open-url) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/statebags#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/statebags#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/statebags#usage-example) --- # Weapon Size | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/weapon-size#syntax) **Syntax** ------------------------------------------------------------------------------------- Copy SharkAPI.EditWeaponSize(weaponSize) [hashtag](https://docs.sharksoftwares.com.br/misc/weapon-size#return) **Return** ------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/weapon-size#usage-example) Usage Example ----------------------------------------------------------------------------------------------- Copy if (IsPedArmed(PlayerPedId(), 4)) then SharkAPI.EditWeaponSize(10.0) end [PreviousIs Console Openchevron-left](https://docs.sharksoftwares.com.br/misc/is-console-open) [NextSync Camera Positionchevron-right](https://docs.sharksoftwares.com.br/misc/sync-camera-position) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/weapon-size#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/weapon-size#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/weapon-size#usage-example) --- # Executor State | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/executor-state#syntax) **Syntax** ---------------------------------------------------------------------------------------- Copy SharkAPI.GetExecutorState() -> Boolean SharkAPI.SetExecutorState(newState) [hashtag](https://docs.sharksoftwares.com.br/misc/executor-state#return) **Return** ---------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the executor is open) [hashtag](https://docs.sharksoftwares.com.br/misc/executor-state#usage-example) Usage Example -------------------------------------------------------------------------------------------------- Copy local state = SharkAPI.GetExecutorState() SharkAPI.SetExecutorState(not state) [PreviousOpen URLchevron-left](https://docs.sharksoftwares.com.br/misc/open-url) [NextIs Console Openchevron-right](https://docs.sharksoftwares.com.br/misc/is-console-open) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/executor-state#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/executor-state#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/executor-state#usage-example) --- # Is Key Just Pressed | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#syntax) **Syntax** ---------------------------------------------------------------------------------------------- Copy SharkAPI.IsKeyJustPressed(vkCode) -> Boolean [hashtag](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#information) Information ---------------------------------------------------------------------------------------------------- circle-exclamation You can find the vkCodes on the website: [https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codesarrow-up-right](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes) [hashtag](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#return) **Return** ---------------------------------------------------------------------------------------------- circle-check Boolean (If the key was pressed this frame) [hashtag](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy local justPressed = SharkAPI.IsKeyJustPressed(0x01) [PreviousInputchevron-left](https://docs.sharksoftwares.com.br/input) [NextIs Key Pressedchevron-right](https://docs.sharksoftwares.com.br/input/is-key-pressed) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#syntax) * [Information](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#information) * [Return](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#return) * [Usage Example](https://docs.sharksoftwares.com.br/input/is-key-just-pressed#usage-example) --- # Force Key Press | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/input/force-key-press#syntax) **Syntax** ------------------------------------------------------------------------------------------ Copy SharkAPI.ForceKeyPress(keyCode) [hashtag](https://docs.sharksoftwares.com.br/input/force-key-press#informations) Informations -------------------------------------------------------------------------------------------------- circle-exclamation You can find the keys on the website: [https://wiki.osdev.org/PS/2\_Keyboardarrow-up-right](https://wiki.osdev.org/PS/2_Keyboard) [hashtag](https://docs.sharksoftwares.com.br/input/force-key-press#return) **Return** ------------------------------------------------------------------------------------------ circle-check None [hashtag](https://docs.sharksoftwares.com.br/input/force-key-press#usage-example) Usage Example ---------------------------------------------------------------------------------------------------- Copy local pressed = SharkAPI.IsKeyPressed(0x01) [PreviousIs Key Pressedchevron-left](https://docs.sharksoftwares.com.br/input/is-key-pressed) [NextScriptingchevron-right](https://docs.sharksoftwares.com.br/scripting) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/input/force-key-press#syntax) * [Informations](https://docs.sharksoftwares.com.br/input/force-key-press#informations) * [Return](https://docs.sharksoftwares.com.br/input/force-key-press#return) * [Usage Example](https://docs.sharksoftwares.com.br/input/force-key-press#usage-example) --- # Is Key Pressed | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/input/is-key-pressed#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.IsKeyPressed(vkCode) -> Boolean [hashtag](https://docs.sharksoftwares.com.br/input/is-key-pressed#information) Information ----------------------------------------------------------------------------------------------- circle-exclamation You can find the vkCodes on the website: [https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codesarrow-up-right](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes) [hashtag](https://docs.sharksoftwares.com.br/input/is-key-pressed#return) **Return** ----------------------------------------------------------------------------------------- circle-check Boolean (If the key was pressed) [hashtag](https://docs.sharksoftwares.com.br/input/is-key-pressed#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy local pressed = SharkAPI.IsKeyPressed(0x01) [PreviousIs Key Just Pressedchevron-left](https://docs.sharksoftwares.com.br/input/is-key-just-pressed) [NextForce Key Presschevron-right](https://docs.sharksoftwares.com.br/input/force-key-press) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/input/is-key-pressed#syntax) * [Information](https://docs.sharksoftwares.com.br/input/is-key-pressed#information) * [Return](https://docs.sharksoftwares.com.br/input/is-key-pressed#return) * [Usage Example](https://docs.sharksoftwares.com.br/input/is-key-pressed#usage-example) --- # Input | Shark Services - Docs [Is Key Just Pressedchevron-right](https://docs.sharksoftwares.com.br/input/is-key-just-pressed) [Is Key Pressedchevron-right](https://docs.sharksoftwares.com.br/input/is-key-pressed) [Force Key Presschevron-right](https://docs.sharksoftwares.com.br/input/force-key-press) [PreviousPlay Soundchevron-left](https://docs.sharksoftwares.com.br/misc/play-sound) [NextIs Key Just Pressedchevron-right](https://docs.sharksoftwares.com.br/input/is-key-just-pressed) --- # Get Variable | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/cloud/get-variable#syntax) **Syntax** --------------------------------------------------------------------------------------- Copy SharkAPI.Cloud.GetVariable(variableId) -> String [hashtag](https://docs.sharksoftwares.com.br/cloud/get-variable#information) **Information** ------------------------------------------------------------------------------------------------- circle-exclamation This information remains saved even if the user restarts the game or PC. [hashtag](https://docs.sharksoftwares.com.br/cloud/get-variable#return) **Return** --------------------------------------------------------------------------------------- circle-check String (Returns the content saved in the variable) [hashtag](https://docs.sharksoftwares.com.br/cloud/get-variable#usage-example) Usage Example ------------------------------------------------------------------------------------------------- Copy local data = SharkAPI.Cloud.GetVariable("config") if (data) then print(json.decode(data)) end [PreviousSave Variablechevron-left](https://docs.sharksoftwares.com.br/cloud/save-variable) [NextDoes Variable Existchevron-right](https://docs.sharksoftwares.com.br/cloud/does-variable-exist) Last updated 16 days ago * [Syntax](https://docs.sharksoftwares.com.br/cloud/get-variable#syntax) * [Information](https://docs.sharksoftwares.com.br/cloud/get-variable#information) * [Return](https://docs.sharksoftwares.com.br/cloud/get-variable#return) * [Usage Example](https://docs.sharksoftwares.com.br/cloud/get-variable#usage-example) --- # Disable All Hooks | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#syntax) **Syntax** ------------------------------------------------------------------------------------------------ Copy SharkAPI.Scripting.DisableAllHooks() [hashtag](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#return) **Return** ------------------------------------------------------------------------------------------------ circle-check None [hashtag](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------- Copy -- There is no usage example, that’s all. SharkAPI.Scripting.DisableAllHooks() [PreviousIs Native Hookedchevron-left](https://docs.sharksoftwares.com.br/scripting/is-native-hooked) [NextGet Native Hashchevron-right](https://docs.sharksoftwares.com.br/scripting/get-native-hash) Last updated 16 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#syntax) * [Return](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks#usage-example) --- # Get Native Hash | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/get-native-hash#syntax) **Syntax** ---------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.GetNativeHash(nativeName) [hashtag](https://docs.sharksoftwares.com.br/scripting/get-native-hash#return) **Return** ---------------------------------------------------------------------------------------------- circle-check Native hash [hashtag](https://docs.sharksoftwares.com.br/scripting/get-native-hash#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy local nativeHash = SharkAPI.Scripting.GetNativeHash("PlayerPedId") print(nativeHash == 0xD80958FC74E988A6) [PreviousDisable All Hookschevron-left](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks) [NextBlock Game Eventchevron-right](https://docs.sharksoftwares.com.br/scripting/block-game-event) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/get-native-hash#syntax) * [Return](https://docs.sharksoftwares.com.br/scripting/get-native-hash#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/get-native-hash#usage-example) --- # Block Game Event | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/block-game-event#syntax) **Syntax** ----------------------------------------------------------------------------------------------- Copy SharkAPI.BlockGameEvent(eventName, blockEvent) [hashtag](https://docs.sharksoftwares.com.br/scripting/block-game-event#return) **Return** ----------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/scripting/block-game-event#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy -- Block event: SharkAPI.BlockGameEvent("CEventNetworkPlayerEnteredVehicle", true) -- Unblock event: SharkAPI.BlockGameEvent("CEventNetworkPlayerEnteredVehicle", false) [PreviousGet Native Hashchevron-left](https://docs.sharksoftwares.com.br/scripting/get-native-hash) [NextExecute JSchevron-right](https://docs.sharksoftwares.com.br/scripting/execute-js) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/block-game-event#syntax) * [Return](https://docs.sharksoftwares.com.br/scripting/block-game-event#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/block-game-event#usage-example) --- # Does Variable Exist | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#syntax) **Syntax** ---------------------------------------------------------------------------------------------- Copy SharkAPI.Cloud.DoesVarExist(variableId) -> Boolean [hashtag](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#information) **Information** -------------------------------------------------------------------------------------------------------- circle-exclamation This information remains saved even if the user restarts the game or PC. [hashtag](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#return) **Return** ---------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the variable exists) [hashtag](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy if (SharkAPI.Cloud.DoesVarExist("config")) then print("Content:", SharkAPI.Cloud.GetVariable("config")) else print("Variable does not exist") end [PreviousGet Variablechevron-left](https://docs.sharksoftwares.com.br/cloud/get-variable) [NextExploitschevron-right](https://docs.sharksoftwares.com.br/exploits) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#syntax) * [Information](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#information) * [Return](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#return) * [Usage Example](https://docs.sharksoftwares.com.br/cloud/does-variable-exist#usage-example) --- # Scripting | Shark Services - Docs [Hook Nativechevron-right](https://docs.sharksoftwares.com.br/scripting/hook-native) [Hook Native For Resourcechevron-right](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource) [Add Hook Callbackchevron-right](https://docs.sharksoftwares.com.br/scripting/add-hook-callback) [Restore Nativechevron-right](https://docs.sharksoftwares.com.br/scripting/restore-native) [Is Native Hookedchevron-right](https://docs.sharksoftwares.com.br/scripting/is-native-hooked) [Disable All Hookschevron-right](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks) [Get Native Hashchevron-right](https://docs.sharksoftwares.com.br/scripting/get-native-hash) [Block Game Eventchevron-right](https://docs.sharksoftwares.com.br/scripting/block-game-event) [Execute JSchevron-right](https://docs.sharksoftwares.com.br/scripting/execute-js) [PreviousForce Key Presschevron-left](https://docs.sharksoftwares.com.br/input/force-key-press) [NextHook Nativechevron-right](https://docs.sharksoftwares.com.br/scripting/hook-native) --- # Hook Native For Resource | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#syntax) **Syntax** ------------------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.HookNativeForResource(nativeHash, value, resourceName) [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#information) **Information** ----------------------------------------------------------------------------------------------------------------- circle-exclamation You can also use the native name as the parameter instead of the hash. [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#return) **Return** ------------------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the native has been successfully hooked) [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#usage-example) Usage Example ----------------------------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.HookNativeForResource(0x6D0DE6A7B5DA71F8, "Shark Services", "anticheat") SharkAPI.Scripting.HookNativeForResource("GetPlayerName", "Shark Services", "anticheat") [PreviousHook Nativechevron-left](https://docs.sharksoftwares.com.br/scripting/hook-native) [NextAdd Hook Callbackchevron-right](https://docs.sharksoftwares.com.br/scripting/add-hook-callback) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#syntax) * [Information](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#information) * [Return](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource#usage-example) --- # Restore Native | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/restore-native#syntax) **Syntax** --------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.RestoreNative(nativeHash) [hashtag](https://docs.sharksoftwares.com.br/scripting/restore-native#information) **Information** ------------------------------------------------------------------------------------------------------- circle-exclamation You can also use the native name as the parameter instead of the hash. [hashtag](https://docs.sharksoftwares.com.br/scripting/restore-native#return) **Return** --------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the native has been successfully restored) [hashtag](https://docs.sharksoftwares.com.br/scripting/restore-native#usage-example) Usage Example ------------------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.RestoreNative(0x6D0DE6A7B5DA71F8) SharkAPI.Scripting.RestoreNative("GetPlayerName") [PreviousAdd Hook Callbackchevron-left](https://docs.sharksoftwares.com.br/scripting/add-hook-callback) [NextIs Native Hookedchevron-right](https://docs.sharksoftwares.com.br/scripting/is-native-hooked) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/restore-native#syntax) * [Information](https://docs.sharksoftwares.com.br/scripting/restore-native#information) * [Return](https://docs.sharksoftwares.com.br/scripting/restore-native#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/restore-native#usage-example) --- # Hook Native | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native#syntax) **Syntax** ------------------------------------------------------------------------------------------ Copy SharkAPI.Scripting.HookNative(nativeHash, value) [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native#information) **Information** ---------------------------------------------------------------------------------------------------- circle-exclamation You can also use the native name as the parameter instead of the hash. [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native#return) **Return** ------------------------------------------------------------------------------------------ circle-check Boolean (Returns true if the native has been successfully hooked) [hashtag](https://docs.sharksoftwares.com.br/scripting/hook-native#usage-example) Usage Example ---------------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.HookNative(0x6D0DE6A7B5DA71F8, "Shark Services") SharkAPI.Scripting.HookNative("GetPlayerName", "Shark Services") [PreviousScriptingchevron-left](https://docs.sharksoftwares.com.br/scripting) [NextHook Native For Resourcechevron-right](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/hook-native#syntax) * [Information](https://docs.sharksoftwares.com.br/scripting/hook-native#information) * [Return](https://docs.sharksoftwares.com.br/scripting/hook-native#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/hook-native#usage-example) --- # Give Pickup Reward | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#syntax) **Syntax** ------------------------------------------------------------------------------------------------ Copy SharkAPI.GivePickupReward(playerId, rewardHash) [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#return) **Return** ------------------------------------------------------------------------------------------------ circle-check None [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------- Copy local players = GetActivePlayers() local randomPlayer = players[math.random(#players)] SharkAPI.GivePickupReward(randomPlayer, GetHashKey("reward_health")) [PreviousExploitschevron-left](https://docs.sharksoftwares.com.br/exploits) [NextGive Pickup Reward Allchevron-right](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#syntax) * [Return](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#return) * [Usage Example](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward#usage-example) --- # Is Native Hooked | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#syntax) **Syntax** ----------------------------------------------------------------------------------------------- Copy SharkAPI.Scripting.IsNativeHooked(nativeHash) -> Boolean [hashtag](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#information) **Information** --------------------------------------------------------------------------------------------------------- circle-exclamation You can also use the native name as the parameter instead of the hash. [hashtag](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#return) **Return** ----------------------------------------------------------------------------------------------- circle-check Boolean (Returns true if the native is currently hooked) [hashtag](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy if (SharkAPI.Scripting.IsNativeHooked(0x6D0DE6A7B5DA71F8)) then print("Is native hooked!") end if (SharkAPI.Scripting.IsNativeHooked("GetPlayerName")) then print("Is native hooked!") end [PreviousRestore Nativechevron-left](https://docs.sharksoftwares.com.br/scripting/restore-native) [NextDisable All Hookschevron-right](https://docs.sharksoftwares.com.br/scripting/disable-all-hooks) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#syntax) * [Information](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#information) * [Return](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/is-native-hooked#usage-example) --- # Cloud | Shark Services - Docs [Save Variablechevron-right](https://docs.sharksoftwares.com.br/cloud/save-variable) [Get Variablechevron-right](https://docs.sharksoftwares.com.br/cloud/get-variable) [Does Variable Existchevron-right](https://docs.sharksoftwares.com.br/cloud/does-variable-exist) [PreviousExecute JSchevron-left](https://docs.sharksoftwares.com.br/scripting/execute-js) [NextSave Variablechevron-right](https://docs.sharksoftwares.com.br/cloud/save-variable) --- # Execute JS | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/execute-js#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.ExecuteJS(code) [hashtag](https://docs.sharksoftwares.com.br/scripting/execute-js#return) **Return** ----------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/scripting/execute-js#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy SharkAPI.ExecuteJS([[\ console.log("Hello World!");\ ]]) [PreviousBlock Game Eventchevron-left](https://docs.sharksoftwares.com.br/scripting/block-game-event) [NextCloudchevron-right](https://docs.sharksoftwares.com.br/cloud) Last updated 8 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/execute-js#syntax) * [Return](https://docs.sharksoftwares.com.br/scripting/execute-js#return) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/execute-js#usage-example) --- # Give Pickup Reward All | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#syntax) **Syntax** ---------------------------------------------------------------------------------------------------- Copy SharkAPI.GivePickupRewardAll(rewardHash) [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#return) **Return** ---------------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------- Copy SharkAPI.GivePickupRewardAll(GetHashKey("reward_health")) [PreviousGive Pickup Rewardchevron-left](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward) [NextSend Damagechevron-right](https://docs.sharksoftwares.com.br/exploits/send-damage) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#syntax) * [Return](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#return) * [Usage Example](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all#usage-example) --- # Add Hook Callback | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#syntax) **Syntax** ------------------------------------------------------------------------------------------------ Copy SharkAPI.Scripting.AddHookCallback(nativeHash, argTypes, returnType, callback) [hashtag](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#information) **Information** ---------------------------------------------------------------------------------------------------------- circle-exclamation You can implement your logic inside this callback, unlike the common HookNative. circle-info Currently, the supported values are only: String, Boolean, Float, Integer, and natives with no return (Void). [hashtag](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#return) **Return** ------------------------------------------------------------------------------------------------ circle-check Boolean (Returns true if the native has been successfully hooked) [hashtag](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#information-1) Information -------------------------------------------------------------------------------------------------------- circle-info Copy eArgType = { INTEGER = 1, STRING = 2, BOOLEAN = 3, FLOAT = 4, NONE = 5, // NONE / VOID } [hashtag](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------- [PreviousHook Native For Resourcechevron-left](https://docs.sharksoftwares.com.br/scripting/hook-native-for-resource) [NextRestore Nativechevron-right](https://docs.sharksoftwares.com.br/scripting/restore-native) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#syntax) * [Information](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#information) * [Return](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#return) * [Information](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#information-1) * [Usage Example](https://docs.sharksoftwares.com.br/scripting/add-hook-callback#usage-example) Copy eArgType { INTEGER = 1, STRING = 2, BOOLEAN = 3, FLOAT = 4, NONE = 5, -- NONE / VOID } -- 1 -> Integer (Argument) -- 2 -> String (Return) -- The last type is always the return type -- For example: GetPlayerName (player - integer) | return: string SharkAPI.Scripting.AddHookCallback(0x6D0DE6A7B5DA71F8, 1, 2, function(player) if (player == PlayerId() and GetCurrentResourceName() == "playernames") then return "Shark Services" end return GetPlayerName(player) end) -- For example: GetPedConfigFlag (ped - integer | flagId - integer | p2 - boolean) | return: boolean SharkAPI.Scripting.AddHookCallback(0x6D0DE6A7B5DA71F8, 1, 1, 3, 3, function(ped, flagId, p2) if (ped == PlayerPedId() and flagId == 2) then print("Blocked resource:", GetCurrentResourceName(), "from access config flag:", flagId) return false end return GetPedConfigFlag(ped, flagId, p2) end) -- For example: SetEntityHealth (entity - integer | health - float) | return: void SharkAPI.Scripting.AddHookCallback(0x6B76DC1F3AE6E6A3, 1, 4, 5, function(entity, health) if (entity ~= PlayerPedId()) then print("Blocked set entity health (anti-esp) from:", GetCurrentResourceName()) return end return SetEntityHealth(entity, health) end) --- # Sync Camera Position | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/sync-camera-position#syntax) **Syntax** ---------------------------------------------------------------------------------------------- Copy SharkAPI.SyncCameraPosition(enable, coords) [hashtag](https://docs.sharksoftwares.com.br/misc/sync-camera-position#return) **Return** ---------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/sync-camera-position#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy if (Freecam) then SharkAPI.SyncCameraPosition(true, vector3(100.0, 100.0, 100.0)) else SharkAPI.SyncCameraPosition(false) end [PreviousWeapon Sizechevron-left](https://docs.sharksoftwares.com.br/misc/weapon-size) [NextPlay Soundchevron-right](https://docs.sharksoftwares.com.br/misc/play-sound) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/sync-camera-position#syntax) * [Return](https://docs.sharksoftwares.com.br/misc/sync-camera-position#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/sync-camera-position#usage-example) --- # Save Variable | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/cloud/save-variable#syntax) **Syntax** ---------------------------------------------------------------------------------------- Copy SharkAPI.Cloud.SaveVariable(variableId, variableContent) [hashtag](https://docs.sharksoftwares.com.br/cloud/save-variable#information) **Information** -------------------------------------------------------------------------------------------------- circle-exclamation This information remains saved even if the user restarts the game or PC. [hashtag](https://docs.sharksoftwares.com.br/cloud/save-variable#return) **Return** ---------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/cloud/save-variable#usage-example) Usage Example -------------------------------------------------------------------------------------------------- Copy local config = { ["freecam"] = true, } SharkAPI.Cloud.SaveVariable("config", json.encode(config)) [PreviousCloudchevron-left](https://docs.sharksoftwares.com.br/cloud) [NextGet Variablechevron-right](https://docs.sharksoftwares.com.br/cloud/get-variable) Last updated 16 days ago * [Syntax](https://docs.sharksoftwares.com.br/cloud/save-variable#syntax) * [Information](https://docs.sharksoftwares.com.br/cloud/save-variable#information) * [Return](https://docs.sharksoftwares.com.br/cloud/save-variable#return) * [Usage Example](https://docs.sharksoftwares.com.br/cloud/save-variable#usage-example) --- # Http Request | Shark Services - Docs [Request Httpchevron-right](https://docs.sharksoftwares.com.br/http-request/request-http) [Async Request Httpchevron-right](https://docs.sharksoftwares.com.br/http-request/async-request-http) [PreviousSend Damagechevron-left](https://docs.sharksoftwares.com.br/exploits/send-damage) [NextRequest Httpchevron-right](https://docs.sharksoftwares.com.br/http-request/request-http) --- # Play Sound | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/misc/play-sound#syntax) **Syntax** ------------------------------------------------------------------------------------ Copy SharkAPI.PlaySoundFromUrl(url) [hashtag](https://docs.sharksoftwares.com.br/misc/play-sound#information) **Information** ---------------------------------------------------------------------------------------------- circle-exclamation The audio must be a `.wav` file. [hashtag](https://docs.sharksoftwares.com.br/misc/play-sound#return) **Return** ------------------------------------------------------------------------------------ circle-check None [hashtag](https://docs.sharksoftwares.com.br/misc/play-sound#usage-example) Usage Example ---------------------------------------------------------------------------------------------- Copy SharkAPI.PlaySoundFromUrl("https://audio.wav") [PreviousSync Camera Positionchevron-left](https://docs.sharksoftwares.com.br/misc/sync-camera-position) [NextInputchevron-right](https://docs.sharksoftwares.com.br/input) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/misc/play-sound#syntax) * [Information](https://docs.sharksoftwares.com.br/misc/play-sound#information) * [Return](https://docs.sharksoftwares.com.br/misc/play-sound#return) * [Usage Example](https://docs.sharksoftwares.com.br/misc/play-sound#usage-example) --- # Request Http | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/http-request/request-http#syntax) **Syntax** ---------------------------------------------------------------------------------------------- Copy SharkAPI.RequestHTTP(url, data) [hashtag](https://docs.sharksoftwares.com.br/http-request/request-http#return) **Return** ---------------------------------------------------------------------------------------------- circle-check String (Request response) [hashtag](https://docs.sharksoftwares.com.br/http-request/request-http#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy -- GET request: local response = SharkAPI.RequestHTTP('https://google.com', { method = 'GET' }) -- POST request: local response = SharkAPI.RequestHTTP('https://api.com/initialize', { method = 'POST', body = { username = SharkAPI.GetUsername() } }) [PreviousHttp Requestchevron-left](https://docs.sharksoftwares.com.br/http-request) [NextAsync Request Httpchevron-right](https://docs.sharksoftwares.com.br/http-request/async-request-http) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/http-request/request-http#syntax) * [Return](https://docs.sharksoftwares.com.br/http-request/request-http#return) * [Usage Example](https://docs.sharksoftwares.com.br/http-request/request-http#usage-example) --- # Exploits | Shark Services - Docs [Give Pickup Rewardchevron-right](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward) [Give Pickup Reward Allchevron-right](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all) [Send Damagechevron-right](https://docs.sharksoftwares.com.br/exploits/send-damage) [PreviousDoes Variable Existchevron-left](https://docs.sharksoftwares.com.br/cloud/does-variable-exist) [NextGive Pickup Rewardchevron-right](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward) --- # Async Request Http | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/http-request/async-request-http#syntax) **Syntax** ---------------------------------------------------------------------------------------------------- Copy SharkAPI.AsyncRequestHTTP(url, data) [hashtag](https://docs.sharksoftwares.com.br/http-request/async-request-http#information) **Information** -------------------------------------------------------------------------------------------------------------- circle-exclamation This API works the same way as RequestHTTP, but asynchronously, without freezing the game [hashtag](https://docs.sharksoftwares.com.br/http-request/async-request-http#return) **Return** ---------------------------------------------------------------------------------------------------- circle-check Object (Response data) [hashtag](https://docs.sharksoftwares.com.br/http-request/async-request-http#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------- Copy -- POST request: local response = SharkAPI.AsyncRequestHTTP('https://api.com/initialize', { method = 'POST', body = { username = SharkAPI.GetUsername() } }) while (not response.Success()) do Wait(1) end print(response.GetResponse()) [PreviousRequest Httpchevron-left](https://docs.sharksoftwares.com.br/http-request/request-http) [NextDrawingchevron-right](https://docs.sharksoftwares.com.br/drawing) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/http-request/async-request-http#syntax) * [Information](https://docs.sharksoftwares.com.br/http-request/async-request-http#information) * [Return](https://docs.sharksoftwares.com.br/http-request/async-request-http#return) * [Usage Example](https://docs.sharksoftwares.com.br/http-request/async-request-http#usage-example) --- # Send Damage | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/exploits/send-damage#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.SendDamageToEntity(pHitEntity, worldHitPosition, hitComponent, overrideDamage, weaponHash, weaponDamage, tyreIndex, suspensionIndex, damageFlags, actionResultId, meleeId, nForcedReactionDefinitionID, hitEntityWeapon, hitWeaponAmmoAttachment, silenced, firstBullet) [hashtag](https://docs.sharksoftwares.com.br/exploits/send-damage#return) **Return** ----------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/exploits/send-damage#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy local ped = ... -- Your logic, whether it's the selected player or whatever you want if (DoesEntityExist(ped)) then -- Example usage to kill the player: SharkAPI.SendDamageToEntity( ped, GetEntityCoords(ped), 99, true, GetHashKey('weapon_run_over_by_car'), 400.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ) -- Example usage to punch the player: SharkAPI.SendDamageToEntity( ped, GetEntityCoords(ped), 99, true, GetHashKey('weapon_unarmed'), 0.0, 0, 0, 522, 32768, 0, 0, 0, 0, 0, 0 ) end [PreviousGive Pickup Reward Allchevron-left](https://docs.sharksoftwares.com.br/exploits/give-pickup-reward-all) [NextHttp Requestchevron-right](https://docs.sharksoftwares.com.br/http-request) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/exploits/send-damage#syntax) * [Return](https://docs.sharksoftwares.com.br/exploits/send-damage#return) * [Usage Example](https://docs.sharksoftwares.com.br/exploits/send-damage#usage-example) --- # Get Text Width | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#syntax) **Syntax** --------------------------------------------------------------------------------------------------- Copy SharkAPI.Fonts.GetTextWidthSize(text, size [, fontName]) -> Float [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#return) **Return** --------------------------------------------------------------------------------------------------- circle-check Float (Returns the text width) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------- Copy local textWidth = SharkAPI.Fonts.GetTextWidthSize("Hello World", 15.0) [PreviousFont Awesomechevron-left](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome) [NextImport Imageschevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-images) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width#usage-example) --- # Drawing Imports | Shark Services - Docs [Import Fontchevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-font) [Font Awesomechevron-right](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome) [Get Text Widthchevron-right](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width) [Import Imageschevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-images) [Import Multi Imageschevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images) [PreviousCursor Drawingchevron-left](https://docs.sharksoftwares.com.br/drawing/cursor-drawing) [NextImport Fontchevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-font) --- # Import Font | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-font#syntax) **Syntax** ------------------------------------------------------------------------------------------------ Copy SharkAPI.Fonts.ImportFontFromUrl(name, size, url) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-font#return) **Return** ------------------------------------------------------------------------------------------------ circle-check String (Returns the font name if it is successfully imported) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-font#usage-example) Usage Example ---------------------------------------------------------------------------------------------------------- Copy SharkAPI.Fonts.ImportFontFromUrl("testFont", 15.0, "https://your-api.com/font.ttf") [PreviousDrawing Importschevron-left](https://docs.sharksoftwares.com.br/drawing-imports) [NextFont Awesomechevron-right](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing-imports/import-font#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing-imports/import-font#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing-imports/import-font#usage-example) --- # Font Awesome | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#syntax) **Syntax** ------------------------------------------------------------------------------------------------- Copy SharkAPI.Fonts.CreateFontAwesome() -> String [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#return) **Return** ------------------------------------------------------------------------------------------------- circle-check String (Font awesome handle) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#usage-example) Usage Example ----------------------------------------------------------------------------------------------------------- Copy local fontAwesome = SharkAPI.Fonts.CreateFontAwesome() SharkAPI.Drawing.DrawText('\xef\x80\x87', 100.0, 100.0, 15.0, false, 255, 255, 255, 255, fontAwesome) [PreviousImport Fontchevron-left](https://docs.sharksoftwares.com.br/drawing-imports/import-font) [NextGet Text Widthchevron-right](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing-imports/font-awesome#usage-example) --- # Import Multi Images | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#syntax) **Syntax** -------------------------------------------------------------------------------------------------------- Copy SharkAPI.Fonts.ImportMultiImages(imagesData) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#information) **Information** ------------------------------------------------------------------------------------------------------------------ circle-exclamation This API works asynchronously and does not freeze the game. [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#return) **Return** -------------------------------------------------------------------------------------------------------- circle-check Object (Import data) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------------ Copy local images = { {name = 'name1', url = 'url1'}, {name = 'name2', url = 'url2'}, } local import = SharkAPI.Images.ImportMultiImages(images) while (not import.Completed()) do print(import.GetLoaded() .. '/' .. #images) Wait(100) end [PreviousImport Imageschevron-left](https://docs.sharksoftwares.com.br/drawing-imports/import-images) [NextSeller APIchevron-right](https://docs.sharksoftwares.com.br/seller-api) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#syntax) * [Information](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#information) * [Return](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images#usage-example) --- # Import Images | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-images#syntax) **Syntax** -------------------------------------------------------------------------------------------------- Copy SharkAPI.Fonts.ImportImageFromUrl(name, url) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-images#return) **Return** -------------------------------------------------------------------------------------------------- circle-check String (Returns the image name if it is successfully imported) [hashtag](https://docs.sharksoftwares.com.br/drawing-imports/import-images#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------ Copy SharkAPI.Fonts.ImportImageFromUrl("testImage", "https://your-api.com/image.png") [PreviousGet Text Widthchevron-left](https://docs.sharksoftwares.com.br/drawing-imports/get-text-width) [NextImport Multi Imageschevron-right](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing-imports/import-images#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing-imports/import-images#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing-imports/import-images#usage-example) --- # Get Key Information | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-key-information#method) **Method** --------------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-key-information#params) **Params** --------------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) key: String (Required) [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-key-information#example-return) **Example Return** ------------------------------------------------------------------------------------------------------------------- Copy { "success": true, "data": { "redeemed": false, "redeemedFor": null, "redeemedAt": null, "keyTime": 1234567890, "generatedAt": 1234567890 } } [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-key-information#usage-example) Usage Example ------------------------------------------------------------------------------------------------------------- [PreviousGet User Informationchevron-left](https://docs.sharksoftwares.com.br/seller-api/get-user-information) [NextChange User Passwordchevron-right](https://docs.sharksoftwares.com.br/seller-api/change-user-password) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/get-key-information#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/get-key-information#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/get-key-information#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/get-key-information#usage-example) Copy const fetchKeyInfo = async (sellerKey, key) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/get-key-information', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, key: key }) }); const data = await response.json(); return data; }; --- # Seller API | Shark Services - Docs [Get User Informationchevron-right](https://docs.sharksoftwares.com.br/seller-api/get-user-information) [Get Key Informationchevron-right](https://docs.sharksoftwares.com.br/seller-api/get-key-information) [Change User Passwordchevron-right](https://docs.sharksoftwares.com.br/seller-api/change-user-password) [Change User Usernamechevron-right](https://docs.sharksoftwares.com.br/seller-api/change-user-username) [Reset User HWIDchevron-right](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid) [User Blacklistchevron-right](https://docs.sharksoftwares.com.br/seller-api/user-blacklist) [Generate Keyschevron-right](https://docs.sharksoftwares.com.br/seller-api/generate-keys) [PreviousImport Multi Imageschevron-left](https://docs.sharksoftwares.com.br/drawing-imports/import-multi-images) [NextGet User Informationchevron-right](https://docs.sharksoftwares.com.br/seller-api/get-user-information) --- # Reset User HWID | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#method) **Method** ----------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#params) **Params** ----------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) username: String (Required) [hashtag](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#example-return) **Example Return** --------------------------------------------------------------------------------------------------------------- Copy { "success": true, "message": "Successfully reset HWID" } [hashtag](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy const resetUserHwid = async (sellerKey, username) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/reset-user-hwid', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, username: username }) }); const data = await response.json(); return data; }; [PreviousChange User Usernamechevron-left](https://docs.sharksoftwares.com.br/seller-api/change-user-username) [NextUser Blacklistchevron-right](https://docs.sharksoftwares.com.br/seller-api/user-blacklist) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid#usage-example) --- # Drawing | Shark Services - Docs [Draw Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-rect) [Draw Border Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-border-rect) [Draw Textchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-text) [Draw Imagechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-image) [Draw Circlechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-circle) [Draw Linechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-line) [Draw Shadow Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect) [Draw Shadow Circlechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle) [Draw Gradient Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect) [Change Orderchevron-right](https://docs.sharksoftwares.com.br/drawing/change-order) [Clip Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/clip-rect) [Cursor Drawingchevron-right](https://docs.sharksoftwares.com.br/drawing/cursor-drawing) [PreviousAsync Request Httpchevron-left](https://docs.sharksoftwares.com.br/http-request/async-request-http) [NextDraw Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-rect) --- # Draw Shadow Rect | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#syntax) **Syntax** --------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawShadowRect(x, y, w, h, r, g, b, a, [, thickness, rounding, flags]) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#return) **Return** --------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#usage-example) Usage Example ------------------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawShadowRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 1.0, 3.0) [PreviousDraw Linechevron-left](https://docs.sharksoftwares.com.br/drawing/draw-line) [NextDraw Shadow Circlechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect#usage-example) --- # Draw Text | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-text#syntax) **Syntax** -------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawText(text, x, y, size, centered, r, g, b, a [, fontName]) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-text#return) **Return** -------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-text#usage-example) Usage Example ------------------------------------------------------------------------------------------------ Copy -- fontName -> optional SharkAPI.Drawing.DrawText('Hello World', 100.0, 100.0, 15.0, false, 255, 255, 255, 255) [PreviousDraw Border Rectchevron-left](https://docs.sharksoftwares.com.br/drawing/draw-border-rect) [NextDraw Imagechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-image) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-text#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-text#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-text#usage-example) --- # Clip Rect | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/clip-rect#syntax) **Syntax** -------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.PushClipRect(x, y, w, h) SharkAPI.Drawing.PopClipRect() [hashtag](https://docs.sharksoftwares.com.br/drawing/clip-rect#return) **Return** -------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/clip-rect#usage-example) Usage Example ------------------------------------------------------------------------------------------------ Copy -- Push clip rect SharkAPI.Drawing.PushClipRect(100.0, 100.0, 50.0, 30.0) -- Draw elements SharkAPI.Drawing.DrawRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 3.0, 48) -- Pop clip rect SharkAPI.Drawing.PopClipRect() [PreviousChange Orderchevron-left](https://docs.sharksoftwares.com.br/drawing/change-order) [NextCursor Drawingchevron-right](https://docs.sharksoftwares.com.br/drawing/cursor-drawing) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/clip-rect#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/clip-rect#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/clip-rect#usage-example) --- # Generate Keys | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/generate-keys#method) **Method** --------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/generate-keys#params) **Params** --------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) mask: '*****-*****-*****-*****' (String) time: em milissegundos (1 dia = 86400000 ms) (Number) amount: quantidade de keys (Number) character: 1 = upper/lowercase, 2 = uppercase, 3 = lowercase (Number) product: menu/spoofer (String) [hashtag](https://docs.sharksoftwares.com.br/seller-api/generate-keys#example-return) **Example Return** ------------------------------------------------------------------------------------------------------------- Copy { "success": true, "data": { "keys": ["ABCDE-FGHIJK-LMNOP"] } } [hashtag](https://docs.sharksoftwares.com.br/seller-api/generate-keys#usage-example) Usage Example ------------------------------------------------------------------------------------------------------- [PreviousUser Blacklistchevron-left](https://docs.sharksoftwares.com.br/seller-api/user-blacklist) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/generate-keys#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/generate-keys#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/generate-keys#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/generate-keys#usage-example) Copy const generateKeys = async (sellerKey, mask, time, amount, character, product) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/generate-keys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, mask: mask, time: time, amount: amount, character: character, product: product }) }); const data = await response.json(); return data; }; --- # Change User Password | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-password#method) **Method** ---------------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-password#params) **Params** ---------------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) username: String (Required) newPassword: String (Required) [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-password#example-return) **Example Return** -------------------------------------------------------------------------------------------------------------------- Copy { "success": true, "message": "Password changed successfully" } [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-password#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------- Copy const changeUserPassword = async (sellerKey, username, newPassword) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/change-user-password', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, username: username, newPassword: newPassword }) }); const data = await response.json(); return data; }; [PreviousGet Key Informationchevron-left](https://docs.sharksoftwares.com.br/seller-api/get-key-information) [NextChange User Usernamechevron-right](https://docs.sharksoftwares.com.br/seller-api/change-user-username) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/change-user-password#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/change-user-password#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/change-user-password#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/change-user-password#usage-example) --- # Draw Gradient Rect | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#syntax) **Syntax** ----------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawGradientRect(x, y, w, h, r, g, b, a, r2, g2, b2, a2 [, rounding, flags]) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#return) **Return** ----------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawGradientRect(100.0, 100.0, 100.0, 100.0, 0, 255, 0, 255, 255, 0, 0, 255) [PreviousDraw Shadow Circlechevron-left](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle) [NextChange Orderchevron-right](https://docs.sharksoftwares.com.br/drawing/change-order) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect#usage-example) --- # Draw Circle | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-circle#syntax) **Syntax** ---------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawCircle(x, y, radius, segments, thickness, r, g, b, a, filled) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-circle#return) **Return** ---------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-circle#usage-example) Usage Example -------------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawCircle(100.0, 100.0, 4.0, 90.0, 1.0, 255, 0, 0, 255, true) [PreviousDraw Imagechevron-left](https://docs.sharksoftwares.com.br/drawing/draw-image) [NextDraw Linechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-line) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-circle#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-circle#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-circle#usage-example) --- # Draw Border Rect | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#syntax) **Syntax** --------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawBorderRect(x, y, w, h, r, g, b, a, [, rounding, flags, thickness]) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#return) **Return** --------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#usage-example) Usage Example ------------------------------------------------------------------------------------------------------- Copy -- rounding -> 3.0 -- flags -> 48 -- thickness -> 1.0 SharkAPI.Drawing.DrawBorderRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 3.0, 48, 1.0) [PreviousDraw Rectchevron-left](https://docs.sharksoftwares.com.br/drawing/draw-rect) [NextDraw Textchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-text) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-border-rect#usage-example) --- # Draw Rect | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-rect#syntax) **Syntax** -------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawRect(x, y, w, h, r, g, b, a, [, rounding, flags]) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-rect#return) **Return** -------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-rect#usage-example) Usage Example ------------------------------------------------------------------------------------------------ Copy -- rounding -> 3.0 -- flags -> 48 SharkAPI.Drawing.DrawRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 3.0, 48) [PreviousDrawingchevron-left](https://docs.sharksoftwares.com.br/drawing) [NextDraw Border Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-border-rect) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-rect#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-rect#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-rect#usage-example) --- # Get User Information | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-user-information#method) **Method** ---------------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-user-information#params) **Params** ---------------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) username: String (Required) [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-user-information#example-return) **Example Return** -------------------------------------------------------------------------------------------------------------------- Copy { "success": true, "data": { "name": "username", "password": "password", "licenses": [\ { name: "menu", expires: "2000-09-16T09:34:58.000Z" },\ { name: "spoofer", expires: "2000-09-16T09:34:58.000Z" }\ ], "banned": { "isBanned": false, "reason": null }, "hwid": { "uuid": "...", "gpu": "...", "cpu": "...", "ram": "..." }, "resetHwid": {} } } [hashtag](https://docs.sharksoftwares.com.br/seller-api/get-user-information#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------- [PreviousSeller APIchevron-left](https://docs.sharksoftwares.com.br/seller-api) [NextGet Key Informationchevron-right](https://docs.sharksoftwares.com.br/seller-api/get-key-information) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/get-user-information#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/get-user-information#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/get-user-information#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/get-user-information#usage-example) Copy const fetchUserInfo = async (sellerKey, username) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/get-user-information', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, username: username }) }); const data = await response.json(); return data; }; --- # Draw Image | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-image#syntax) **Syntax** --------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawImage(name, x, y, w, h, r, g, b, a, rounding) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-image#return) **Return** --------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-image#usage-example) Usage Example ------------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawImage('image', 100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 5.0) [PreviousDraw Textchevron-left](https://docs.sharksoftwares.com.br/drawing/draw-text) [NextDraw Circlechevron-right](https://docs.sharksoftwares.com.br/drawing/draw-circle) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-image#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-image#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-image#usage-example) --- # Draw Shadow Circle | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#syntax) **Syntax** ----------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawShadowCircle(x, y, radius, segments, thickness, r, g, b, a) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#return) **Return** ----------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#usage-example) Usage Example --------------------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawShadowCircle(100.0, 100.0, 50.0, 90.0, 5.0, 255, 0, 0, 255) [PreviousDraw Shadow Rectchevron-left](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect) [NextDraw Gradient Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-shadow-circle#usage-example) --- # Change User Username | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-username#method) **Method** ---------------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-username#params) **Params** ---------------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) username: String (Required) newUsername: String (Required) [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-username#example-return) **Example Return** -------------------------------------------------------------------------------------------------------------------- Copy { "success": true, "message": "Username changed successfully" } [hashtag](https://docs.sharksoftwares.com.br/seller-api/change-user-username#usage-example) Usage Example -------------------------------------------------------------------------------------------------------------- Copy const changeUserUsername = async (sellerKey, currentUsername, newUsername) => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/change-user-username', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, username: currentUsername, newUsername: newUsername }) }); const data = await response.json(); return data; }; [PreviousChange User Passwordchevron-left](https://docs.sharksoftwares.com.br/seller-api/change-user-password) [NextReset User HWIDchevron-right](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/change-user-username#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/change-user-username#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/change-user-username#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/change-user-username#usage-example) --- # Change Order | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/change-order#syntax) **Syntax** ----------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.PushOrder(order) SharkAPI.Drawing.PopOrder() [hashtag](https://docs.sharksoftwares.com.br/drawing/change-order#return) **Return** ----------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/change-order#usage-example) Usage Example --------------------------------------------------------------------------------------------------- Copy -- Push order SharkAPI.Drawing.PushOrder(3) -- Draw elements SharkAPI.Drawing.DrawRect(100.0, 100.0, 100.0, 100.0, 255, 0, 0, 255, 3.0, 48) -- Pop order SharkAPI.Drawing.PopOrder() [PreviousDraw Gradient Rectchevron-left](https://docs.sharksoftwares.com.br/drawing/draw-gradient-rect) [NextClip Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/clip-rect) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/change-order#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/change-order#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/change-order#usage-example) --- # Draw Line | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-line#syntax) **Syntax** -------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.DrawLine(x1, y1, x2, y2, r, g, b, a, thickness) [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-line#return) **Return** -------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/draw-line#usage-example) Usage Example ------------------------------------------------------------------------------------------------ Copy SharkAPI.Drawing.DrawLine(100.0, 100.0, 200.0, 200.0, 255, 255, 255, 255, 1.5) [PreviousDraw Circlechevron-left](https://docs.sharksoftwares.com.br/drawing/draw-circle) [NextDraw Shadow Rectchevron-right](https://docs.sharksoftwares.com.br/drawing/draw-shadow-rect) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/draw-line#syntax) * [Return](https://docs.sharksoftwares.com.br/drawing/draw-line#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/draw-line#usage-example) --- # Cursor Drawing | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#syntax) **Syntax** ------------------------------------------------------------------------------------------- Copy SharkAPI.Drawing.SetCursorActive(active) SharkAPI.Drawing.SetCursorIcon(cursorIcon) [hashtag](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#information) **Information** ----------------------------------------------------------------------------------------------------- Copy local cursorIcons = { Arrow = 0, TextInput = 1, ResizeAll = 2, ResizeNS = 3, ResizeEW 4, ResizeNESW = 5, ResizeNWSE = 6, Hand = 7, NotAllowed = 8, } [hashtag](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#return) **Return** ------------------------------------------------------------------------------------------- circle-check None [hashtag](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#usage-example) Usage Example ----------------------------------------------------------------------------------------------------- [PreviousClip Rectchevron-left](https://docs.sharksoftwares.com.br/drawing/clip-rect) [NextDrawing Importschevron-right](https://docs.sharksoftwares.com.br/drawing-imports) Last updated 15 days ago * [Syntax](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#syntax) * [Information](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#information) * [Return](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#return) * [Usage Example](https://docs.sharksoftwares.com.br/drawing/cursor-drawing#usage-example) Copy -- Draw cursor SharkAPI.Drawing.SetCursorActive(true) -- Remove cursor SharkAPI.Drawing.SetCursorActive(false) -- Change cursor icon SharkAPI.Drawing.SetCursorIcon(7) -- Reset cursor icon SharkAPI.Drawing.ResetCursorIcon() --- # User Blacklist | Shark Services - Docs [hashtag](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#method) **Method** ---------------------------------------------------------------------------------------------- circle-info POST [hashtag](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#params) **Params** ---------------------------------------------------------------------------------------------- Copy sellerKey: String (Required) username: String (Required) ban: Boolean (Required) reason: String (Optional) [hashtag](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#example-return) **Example Return** -------------------------------------------------------------------------------------------------------------- Copy { "success": true, "message": "User banned/unbanned successfully" } [hashtag](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#usage-example) Usage Example -------------------------------------------------------------------------------------------------------- Copy const toggleUserBlacklist = async (sellerKey, username, ban, reason = '') => { const response = await fetch('https://v2.sharksoftwares.com.br/seller/blacklist-user', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sellerKey: sellerKey, username: username, ban: ban, reason: reason }) }); const data = await response.json(); return data; }; [PreviousReset User HWIDchevron-left](https://docs.sharksoftwares.com.br/seller-api/reset-user-hwid) [NextGenerate Keyschevron-right](https://docs.sharksoftwares.com.br/seller-api/generate-keys) Last updated 10 days ago * [Method](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#method) * [Params](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#params) * [Example Return](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#example-return) * [Usage Example](https://docs.sharksoftwares.com.br/seller-api/user-blacklist#usage-example) ---