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

+13 -13
View File
@@ -25,19 +25,19 @@ class ConvertLanguage extends Prompt
$parts[] = sprintf(
"%s\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",
"Please:",
"1. Convert the code while maintaining functionality",
"2. Use idiomatic patterns for the target language",
"3. Update native function calls to match language syntax",
"4. Adjust event handlers and callbacks",
"5. Explain major differences in the conversion",
"6. Ensure FiveM compatibility in the target language",
"Key differences to consider:",
"- Array/table indexing (0 vs 1-based)",
"- String formatting",
"- Event registration syntax",
"- Async patterns",
"- Native return values"
'Please:',
'1. Convert the code while maintaining functionality',
'2. Use idiomatic patterns for the target language',
'3. Update native function calls to match language syntax',
'4. Adjust event handlers and callbacks',
'5. Explain major differences in the conversion',
'6. Ensure FiveM compatibility in the target language',
'Key differences to consider:',
'- Array/table indexing (0 vs 1-based)',
'- String formatting',
'- Event registration syntax',
'- Async patterns',
'- Native return values'
);
return Response::prompt(implode('', $parts));