Add QBCore tools for player and shared data information
- Implement GetQBCorePlayers tool to retrieve player data structure, methods, events, and examples. - Implement GetQBCoreSharedData tool to retrieve shared data types including items, jobs, gangs, vehicles, weapons, starter items, and utilities. - Create corresponding Blade views for displaying player and shared data information. - Add tests for GetQBCoreConfig, GetQBCorePlayers, and GetQBCoreSharedData tools to ensure correct functionality and response handling.
This commit is contained in:
14 files changed
+1157
-6
No files matched your search
@@ -0,0 +1,35 @@
|
||||
## {{ $data['type'] }} - QBCore Shared Data
|
||||
|
||||
**Location:** `{{ $data['location'] }}`
|
||||
|
||||
{{ $data['description'] }}
|
||||
|
||||
### Properties
|
||||
@if(isset($data['properties']))
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
@foreach($data['properties'] as $prop)
|
||||
| `{{ $prop['name'] }}` | {{ $prop['type'] }} | {{ $prop['description'] }} |
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(isset($data['methods']))
|
||||
### Available Methods
|
||||
@foreach($data['methods'] as $method)
|
||||
- **{{ $method['name'] }}** - {{ $method['description'] }}
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
### Lua Example
|
||||
```lua
|
||||
{{ $data['lua_example'] }}
|
||||
```
|
||||
|
||||
### JavaScript Example
|
||||
```javascript
|
||||
{{ $data['js_example'] }}
|
||||
```
|
||||
|
||||
### Learn More
|
||||
- [QBCore Shared Documentation](https://docs.qbcore.org/qbcore-documentation/qb-core/shared)
|
||||
- [QBCore Repository](https://github.com/qbcore-framework/qb-core)
|
||||
Reference in new issue
Block a user