Files
fivem-mcp/resources/views/mcp/cox-function.blade.php
T
Adrian Mejias a2591c2209 feat: Add COX MySQL tools and resources for event references and function lookups
- Implemented DatabaseQueries resource for FiveM database query examples.
- Created GetCOXEventReference tool to retrieve information about COX MySQL events.
- Developed GetCOXFunction tool to look up COX MySQL functions and methods.
- Added views for displaying event lists, event references, and function details.
- Included comprehensive CRUD operation examples for database interactions in FiveM.
- Established tests for GetCOXEventReference and GetCOXFunction tools to ensure functionality.
2026-03-01 01:20:59 -06:00

49 lines
893 B
PHP

# COX Function: {{ $function['name'] }}
**Namespace:** {{ $function['namespace'] }}
**Side:** {{ ucfirst($function['side']) }}
### Description
{{ $function['description'] }}
### Parameters
@if(count($function['parameters']) > 0)
@foreach($function['parameters'] as $param)
- **{{ $param['name'] }}** ({{ $param['type'] }}): {{ $param['description'] }}
@endforeach
@else
This function takes no parameters.
@endif
### Returns
**Type:** {{ $function['returns']['type'] }}
{{ $function['returns']['description'] }}
### Code Examples
@if($language === 'js')
**JavaScript:**
```javascript
{{ $function['js_example'] }}
```
@else
**Lua:**
```lua
{{ $function['lua_example'] }}
```
@endif
### Alternative Example
@if($language === 'js')
**Lua (alternative):**
```lua
{{ $function['lua_example'] }}
```
@else
**JavaScript (alternative):**
```javascript
{{ $function['js_example'] }}
```
@endif