A focused FiveM resource for qbox/qbx_core servers that provides advanced notebook functionality for four specific item types. This resource offers rich metadata tracking, modern UI, and seamless integration with ox_inventory and ox_lib.
This resource is specifically designed for notebook-related items and strictly validates that only supported notebook items are processed:
- ๐ notebook - Personal notes and thoughts
- ๐ journal - Extended diary entries
- ๐ผ businesscard - Professional contact information
- ๐ท photo - Photo descriptions and memories
Note: Phone apps and other item types are handled in separate repositories for better modularity and focused functionality.-Item FiveM Resource
A comprehensive FiveM resource for qbox/qbx_core servers that provides advanced notebook functionality with support for multiple item types. This resource offers rich metadata tracking, modern UI, and seamless integration with ox_inventory and ox_lib.
๏ฟฝ Phone Apps Repository: FiveM-phone
The phone apps have been moved to a separate repository for better modularity:
- ๐ฑ notebook_phone_app: Access and edit notebooks via phone
- ๐ฐ invoice_phone_app: Professional invoice management system
- ๐ unified_phone_app: Combined notebook + invoice interface
- ๐ notebook_item: Advanced notebook resource with 4 item types
- ๐ notebook: Personal notes and quick thoughts (500 characters)
- ๐ journal: Extended diary entries for detailed experiences (1000 characters)
- ๐ผ businesscard: Professional contact information (300 characters)
- ๐ท photo: Photo descriptions and memories (250 characters)
- Strict Validation: Only processes the 4 supported notebook item types
- Smart UI: Each item type has custom icons and placeholders
- Character Limits: Different limits per item type for appropriate usage
- Metadata Tracking: Stores author, timestamp, and item type
- Admin Tools:
/checkitem [slot]
command for administrators - Error Handling: Clear feedback for unsupported items
- Journalists can use journals for article drafts and notes
- Business owners can create and exchange business cards
- Photographers can catalog their work with photo descriptions
- Students can take notes during classes using notebooks
- Investigators can document evidence and observations
- Citizens can maintain personal diaries and journals
This resource strictly processes only the four supported notebook item types. Any other item types will be rejected with clear error messages, ensuring focused functionality and preventing conflicts with other systems.
- qbx_core - Core framework
- ox_inventory - Inventory system
- ox_lib - UI library and utilities
-
Download the Resource
git clone https://github.com/yourusername/enhanced-notebook-item.git cd enhanced-notebook-item
-
Run Installation Script
chmod +x install.sh ./install.sh
-
Copy Resource to Server
cp -r notebook_item /path/to/your/server/resources/
-
Add to server.cfg
ensure notebook_item
-
Add Items to ox_inventory
- Copy items from
items.txt
to your ox_inventory items.lua - Or use the automated script to add them
- Copy items from
-- All four item types with different characteristics
['notebook'] = { /* 500 char limit, general notes */ },
['journal'] = { /* 1000 char limit, detailed entries */ },
['businesscard'] = { /* 300 char limit, contact info */ },
['photo'] = { /* 250 char limit, photo descriptions */ }
-
Taking Meeting Notes
- Use notebook for quick bullet points
- Use journal for detailed meeting summaries
-
Business Networking
- Create business cards with contact information
- Share professional details with other players
-
Photography Documentation
- Add descriptions to memorable photos
- Document special moments and locations
# Give items to players
/give [player_id] notebook 1
/give [player_id] journal 1
/give [player_id] businesscard 1
/give [player_id] photo 1
# Check item content (admin only)
/checkitem [slot_number]
config.items = {
notebook = { maxLength = 500 },
journal = { maxLength = 1000 },
businesscard = { maxLength = 300 },
photo = { maxLength = 250 }
}
- Content sharing between players (future)
- Password protection for sensitive items (future)
- Content categorization system (future)
- Job-based restrictions
- Usage statistics tracking
./validate.sh # Validate resource structure
./notebook.sh test # Run comprehensive tests
./build.sh # Create distribution packages
./deploy.sh # Deploy to FiveM server
./notebook.sh # Interactive menu for all operations
- Server-side input validation
- XSS protection through sanitization
- Character limits per item type
- Player verification before updates
- Efficient metadata storage
- Minimal network overhead
- Optimized UI interactions
- Smart caching of configurations
- Notebook-focused: Designed specifically for the 4 supported notebook item types
- QBox/QBX Integration: Full compatibility with qbox/qbx_core framework
- ox_inventory: Seamless integration with ox_inventory system
- Server Compatibility: Works with multiple FiveM server versions
notebook_item/
โโโ fxmanifest.lua # Resource manifest
โโโ shared/
โ โโโ config.lua # Item configurations
โ โโโ advanced.lua # Advanced feature settings
โโโ client/
โ โโโ main.lua # Client-side UI and interactions
โโโ server/
โโโ main.lua # Server-side validation and storage
- โ Strict Validation: Only processes the 4 supported notebook item types
- โ Enhanced Security: Rejects unsupported items with clear error messages
- โ Focused Functionality: Removed all non-notebook logic for better performance
- โ Improved Validation: Better error handling and user feedback
- โ Code Cleanup: Consolidated codebase for notebook items only
- โ Added journal, business card, and photo items
- โ Individual character limits per item type
- โ Enhanced UI with custom icons and placeholders
- โ Admin inspection tools
- โ Improved metadata tracking
- โ Advanced configuration options
- โ Basic notebook functionality
- โ Metadata storage
- โ Server-side validation
This resource includes proper Lua Language Server configuration for VS Code to eliminate diagnostics warnings during development.
Key Features:
- โ
FiveM Globals: All common FiveM functions are recognized (
TriggerEvent
,RegisterNetEvent
, etc.) - โ Framework Support: QBX, ESX, ox_lib globals are included
- โ
Server Functions: Server-side functions like
GetPlayers
,TriggerClientEvent
are configured - โ Clean Development: No false positive errors for valid FiveM code
Setup Instructions:
- Install the Lua Language Server extension in VS Code (
sumneko.lua
) - The
.luarc.json
file is already configured for FiveM development - Restart the Lua Language Server:
Cmd+Shift+P
โLua: Restart Server
Files Included:
.luarc.json
- Main Lua configuration.vscode/settings.json
- VS Code workspace settingsLUA_DIAGNOSTICS_SETUP.md
- Detailed setup documentation
For more details, see the Lua Diagnostics Setup Guide.
- Documentation: Check the project documentation for detailed guides
- Issues: Report bugs via GitHub Issues
- Validation: Use
./validate.sh
to check your installation
MIT License - see LICENSE file for details
- Fork the repository
- Create a feature branch
- Make your changes
- Run validation tests with
./validate.sh
- Submit a pull request