Add QBCore event and function tools with documentation and tests
- Implement GetQBCoreEventReference tool to retrieve QBCore event information. - Implement GetQBCoreFunction tool to look up QBCore functions and exports. - Enhance SearchFiveMDocs to include QBCore documentation links. - Create Blade views for displaying QBCore events and function details. - Add tests for GetQBCoreEventReference and GetQBCoreFunction tools to ensure functionality and error handling.
This commit is contained in:
8 files changed
+769
-1
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# QBCore 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