Implement feature X to enhance user experience and fix bug Y in module Z
This commit is contained in:
1 file changed
+98
-23
@@ -159,16 +159,18 @@
|
|||||||
<!-- Tool 1: SearchFiveMDocs -->
|
<!-- Tool 1: SearchFiveMDocs -->
|
||||||
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
<h3 class="text-xl font-semibold text-gray-900 mb-3">1. SearchFiveMDocs</h3>
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">1. SearchFiveMDocs</h3>
|
||||||
<p class="text-gray-700 mb-4">Search FiveM documentation for specific topics.</p>
|
<p class="text-gray-700 mb-4">Search FiveM and QBCore documentation for specific topics.</p>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">query</code> (required): Search query (e.g., "events", "natives", "manifest")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">query</code> (required): Search query (e.g., "events",
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">category</code> (optional): Filter by category (all, scripting, natives, networking, resources)</li>
|
"natives", "manifest")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">category</code> (optional): Filter by category (all,
|
||||||
|
scripting, natives, networking, resources, qbcore)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Search FiveM docs for "network events"</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Search for QBCore callbacks and exports</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tool 2: GetNativeFunction -->
|
<!-- Tool 2: GetNativeFunction -->
|
||||||
@@ -178,14 +180,20 @@
|
|||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): Native function name (e.g., "GetPlayerPed", "SetEntityCoords")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): Native function name
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua or js)</li>
|
(e.g., "GetPlayerPed", "SetEntityCoords")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Common Native Examples:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Common Native Examples:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li>Common natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetPlayerPed</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">SetEntityCoords</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetEntityCoords</code></li>
|
<li>Common natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetPlayerPed</code>, <code
|
||||||
<li>CFX natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">RegisterNetEvent</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerServerEvent</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerClientEvent</code></li>
|
class="bg-gray-100 px-2 py-1 rounded text-sm">SetEntityCoords</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetEntityCoords</code></li>
|
||||||
|
<li>CFX natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">RegisterNetEvent</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerServerEvent</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerClientEvent</code></li>
|
||||||
<li>ESX: <code class="bg-gray-100 px-2 py-1 rounded text-sm">ESX.GetPlayerFromId</code></li>
|
<li>ESX: <code class="bg-gray-100 px-2 py-1 rounded text-sm">ESX.GetPlayerFromId</code></li>
|
||||||
<li>QBCore: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code></li>
|
<li>QBCore: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -201,32 +209,41 @@
|
|||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">author</code> (optional): Author name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">author</code> (optional): Author name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">description</code> (optional): Resource description</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">description</code> (optional): Resource description</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">version</code> (optional): Version number (default: "1.0.0")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">version</code> (optional): Version number (default:
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)</li>
|
"1.0.0")</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_client</code> (optional): Include client scripts (default: true)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_server</code> (optional): Include server scripts (default: true)</li>
|
</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore (default: standalone)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_client</code> (optional): Include client scripts
|
||||||
|
(default: true)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_server</code> (optional): Include server scripts
|
||||||
|
(default: true)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore
|
||||||
|
(default: standalone)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Generate a manifest for an ESX resource called "my-shop"</code></pre>
|
<pre
|
||||||
|
class="bg-gray-100 rounded p-3 text-sm"><code>Generate a manifest for an ESX resource called "my-shop"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tool 4: GetEventReference -->
|
<!-- Tool 4: GetEventReference -->
|
||||||
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
<h3 class="text-xl font-semibold text-gray-900 mb-3">4. GetEventReference</h3>
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">4. GetEventReference</h3>
|
||||||
<p class="text-gray-700 mb-4">Get information about FiveM events.</p>
|
<p class="text-gray-700 mb-4">Get information about FiveM, ESX, and QBCore events.</p>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to look up</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_type</code> (optional): Filter by type (all, core, esx, qbcore)</li>
|
look up</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua or js)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_type</code> (optional): Filter by type (all, core,
|
||||||
|
esx, qbcore)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all core FiveM events</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all core FiveM events</code></pre>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Look up the playerConnecting event</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Look up the QBCore:Client:OnPlayerLoaded event</code></pre>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all ESX events</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all ESX events</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -238,13 +255,71 @@
|
|||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore (default: standalone)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)</li>
|
(default: standalone)</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_nui</code> (optional): Include NUI files (default: false)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)
|
||||||
|
</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_nui</code> (optional): Include NUI files
|
||||||
|
(default: false)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Generate boilerplate for a QBCore resource with NUI called "admin-panel"</code></pre>
|
<pre
|
||||||
|
class="bg-gray-100 rounded p-3 text-sm"><code>Generate boilerplate for a QBCore resource with NUI called "admin-panel"</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Tool 6: GetQBCoreEventReference -->
|
||||||
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">6. GetQBCoreEventReference</h3>
|
||||||
|
<p class="text-gray-700 mb-4">Get information about QBCore framework events.</p>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to
|
||||||
|
look up</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_category</code> (optional): Filter by category
|
||||||
|
(all, player, job, inventory, vehicle, money)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>What's the QBCore:Client:OnPlayerLoaded event?</code></pre>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all QBCore player events</code></pre>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all QBCore inventory events</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Tool 7: GetQBCoreFunction -->
|
||||||
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">7. GetQBCoreFunction</h3>
|
||||||
|
<p class="text-gray-700 mb-4">Look up QBCore functions and exports.</p>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): QBCore function name
|
||||||
|
(e.g., "QBCore.Functions.GetPlayer", "AddMoney")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Common QBCore Functions:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li>Player: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayerData</code></li>
|
||||||
|
<li>Items: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddItem</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">RemoveItem</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetItemByName</code></li>
|
||||||
|
<li>Money: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddMoney</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">RemoveMoney</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetMoney</code></li>
|
||||||
|
<li>Jobs: <code class="bg-gray-100 px-2 py-1 rounded text-sm">SetJob</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetJob</code></li>
|
||||||
|
<li>Vehicles: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddVehicle</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">DeleteVehicle</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>How do I use the AddMoney function in QBCore?</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user