feat: Update COX and QBCore tools with new event and function references, enhance documentation views, and improve boilerplate generation
This commit is contained in:
31 files changed
+87
-122
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user