ptfx_install
Copies a built .ypt file into a FiveM resource's stream folder and returns the Lua code needed to play its particle effect.
Instructions
Copy a built .ypt into a FiveM resource's stream/ folder and return the Lua that plays an effect from it.
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": {
"ypt": "<ypt>",
"resource_dir": "<resource_dir>"
},
"name": "ptfx_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ypt | Yes | absolute path | |
| effect | No | ||
| resource_dir | Yes | absolute path |