get_snippet
Retrieves ready-to-use SA-MP code snippets by category—MySQL login, vehicle systems, inventory, and admin commands—so developers can quickly implement common Pawn scripting tasks.
Instructions
Get a common SAMP code snippet for various systems (MySQL, Login, Vehicle, etc.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>"
},
"name": "get_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Category of snippet |