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.
This commit is contained in:
12 files changed
+1484
-477
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user