feat: Update COX and QBCore tools with new event and function references, enhance documentation views, and improve boilerplate generation

This commit is contained in:
Adrian Mejias committed 2026-03-01 14:41:31 -06:00
1 parent 6a14dff647
commit 2f8ebe2940
31 files changed
+87 -122

No files matched your search

+12 -12
View File
@@ -25,18 +25,18 @@ class OptimizePerformance extends Prompt
$parts[] = sprintf(
"Script Type: %s\n\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s",
$scriptType,
"Please analyze the code and:",
"1. Identify performance issues (unnecessary loops, missing waits, etc.)",
"2. Suggest optimizations with code examples",
"3. Explain why each optimization improves performance",
"4. Provide the optimized version of the code",
"5. Reference FiveM best practices for performance",
"Focus on:",
"- Proper Citizen.Wait() usage",
"- Distance checks before expensive operations",
"- Caching frequently accessed values",
"- Reducing server-client communication",
"- Efficient event handling"
'Please analyze the code and:',
'1. Identify performance issues (unnecessary loops, missing waits, etc.)',
'2. Suggest optimizations with code examples',
'3. Explain why each optimization improves performance',
'4. Provide the optimized version of the code',
'5. Reference FiveM best practices for performance',
'Focus on:',
'- Proper Citizen.Wait() usage',
'- Distance checks before expensive operations',
'- Caching frequently accessed values',
'- Reducing server-client communication',
'- Efficient event handling'
);
return Response::prompt(implode('', $parts));