https://github.com/greigh/fivem-phone
https://github.com/greigh/fivem-phone
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/greigh/fivem-phone
- Owner: Greigh
- Created: 2025-06-27T14:13:37.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T14:21:19.000Z (12 months ago)
- Last Synced: 2025-06-29T15:19:06.547Z (12 months ago)
- Language: Lua
- Size: 52.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ฑ FiveM Phone Apps Collection
A collection of universal phone apps for FiveM servers, compatible with multiple frameworks (ESX, QBCore, QBX) and phone systems (LB Phone, QB Phone, QS Smartphone).
> **โ ๏ธ Development Status Notice**
> These phone apps are currently in **development/testing phase** and have not been fully tested in production environments. While they pass all validation checks and are designed for universal compatibility, **we recommend using them primarily with LB Phone** as it has received the most testing attention. Use in production servers at your own discretion and please report any issues you encounter.
> Additionally this is only my second FiveM project, so please be patient with me as I learn the ropes of this FiveM.
## ๐ Apps Included
| App | Description | Size | Database Required |
|-----|-------------|------|-------------------|
| ๐ง **Invoicing** | Create and manage professional invoices | 1024 KB | โ
Yes |
| ๐ **Notes** | Personal note-taking with categories | 512 KB | โ No |
| ๐ผ **Business Cards** | Design and share professional cards | 768 KB | โ
Yes |
| ๐งฎ **Calculator** | Advanced calculator with history | 256 KB | โ No |
| ๐ธ **Gallery** | Photo storage and management | 1536 KB | โ
Yes |
## ๐ Quick Start
> **๐ฑ Recommended Setup**: For the best experience, we recommend using **LB Phone** as it has received the most comprehensive testing with these apps.
### 1. Download & Extract
```bash
# Download the latest release
# Extract to your server's resources directory
```
### 2. Install Dependencies
```lua
# Add to server.cfg BEFORE the phone apps
ensure ox_lib
ensure es_extended # OR qb-core OR qbx_core
ensure lb-phone # OR qb-phone OR qs-smartphone
```
### 3. Install Phone Apps
```bash
# Run the installation script
cd phone_apps
chmod +x install.sh
./install.sh
```
### 4. Add to server.cfg
```lua
# Phone Apps (add after dependencies)
ensure invoicing
ensure notes
ensure business_cards
ensure calculator
ensure gallery
```
### 5. Restart Server
```bash
# Restart your FiveM server
restart ox_lib
restart [your-framework]
restart [your-phone-system]
start invoicing
start notes
start business_cards
start calculator
start gallery
```
## ๐ง Compatibility
### โ
Supported Frameworks
- **ESX** (es_extended)
- **QBCore** (qb-core)
- **QBX** (qbx_core)
### โ
Supported Phone Systems
- **LB Phone** (lb-phone) - **๐ Recommended & Best Tested**
- **QB Phone** (qb-phone) - Limited testing
- **QS Smartphone** (qs-smartphone) - Limited testing
### โ
Dependencies
- **ox_lib** (required)
- **MySQL Async/oxmysql** (for database apps)
## ๐ฑ App Details
### ๐ง Invoicing App
Professional invoice management system.
**Features:**
- Create and send invoices to players
- Automatic tax calculations
- Payment processing
- Invoice history and tracking
- Expiration handling
**Database:** `invoices` table (auto-created)
### ๐ Notes App
Personal note-taking application.
**Features:**
- Create and edit personal notes
- Category organization
- Search functionality
- Auto-save feature
- Rich text support
**Database:** Not required (uses local storage)
### ๐ผ Business Cards App
Professional business card creator.
**Features:**
- Design custom business cards
- Multiple professional templates
- Share with nearby players
- Contact management
- QR code generation
**Database:** `business_cards` table (auto-created)
### ๐งฎ Calculator App
Advanced calculator with memory.
**Features:**
- Basic and advanced operations
- Calculation history
- Keyboard shortcuts
- Memory functions
- Responsive design
**Database:** Not required
### ๐ธ Gallery App
Photo storage and management.
**Features:**
- Photo upload and storage
- Album organization
- Image viewing and sharing
- Privacy controls
- Slideshow mode
**Database:** `gallery_photos` and `gallery_albums` tables (auto-created)
## ๐ ๏ธ Configuration
Each app includes a `config.lua` file for customization:
```lua
-- Example: Invoicing App Configuration
Config.MaxInvoiceAmount = 50000
Config.DefaultTaxRate = 0.10
Config.AllowedJobs = {} -- Empty = all jobs can use
-- Example: Business Cards Configuration
Config.MaxCards = 100
Config.SharingDistance = 5.0
Config.AllowCustomImages = true
```
## ๐ฑ Phone Integration
Apps automatically register with your phone system:
```lua
-- LB Phone Integration
Config.PhoneApp = {
identifier = "invoicing",
name = "Invoicing",
description = "Create and manage professional invoices",
icon = "https://cdn-icons-png.flaticon.com/512/1611/1611179.png",
category = "business",
size = 1024
}
```
## ๐ Validation
Validate your installation:
```bash
# Run the validation script
./validate_phone_apps.sh
```
The validation script checks:
- โ
App structure and files
- โ
Framework compatibility
- โ
Phone system integration
- โ
Configuration validity
- โ
Code quality standards
## ๐งช Testing Status & Recommendations
### ๐ Recommended Configuration
- **Framework**: Any (ESX, QBCore, QBX) - All tested and working
- **Phone System**: **LB Phone** - Most thoroughly tested
- **Environment**: Development/Testing servers initially
### โ ๏ธ Testing Status by Phone System
| Phone System | Testing Level | Status | Recommendation |
|--------------|---------------|--------|----------------|
| **LB Phone** | Comprehensive | โ
Well Tested | **Recommended for production** |
| **QB Phone** | Basic | โ ๏ธ Limited Testing | Use with caution, test thoroughly |
| **QS Smartphone** | Basic | โ ๏ธ Limited Testing | Use with caution, test thoroughly |
### ๐ฌ What Has Been Tested
- โ
Framework detection and compatibility (ESX/QB/QBX)
- โ
App installation and registration
- โ
Basic functionality of all 5 apps
- โ
Database integration (where required)
- โ
NUI interface loading and interaction
- โ
LB Phone integration and app appearance
### โ ๏ธ What Needs More Testing
- ๐ Extended production use in live servers
- ๐ QB Phone and QS Smartphone integration edge cases
- ๐ Performance under high player loads
- ๐ Cross-framework data compatibility
- ๐ Advanced features in complex server environments
### ๐ก For Production Use
1. **Test in a development environment first**
2. **Start with LB Phone if possible**
3. **Monitor console for any errors**
4. **Test with a small group of users initially**
5. **Report any issues you encounter**
## ๐ Troubleshooting
### Apps Not Appearing in Phone
1. Check console for registration messages
2. Verify dependencies are loaded first
3. Ensure framework is detected correctly
4. Check resource loading order
5. **For best results, use LB Phone** (most tested)
### Framework Detection Issues
```lua
-- Debug framework detection
print("Framework:", PhoneApps.GetFramework())
```
### Phone System Specific Issues
**LB Phone (Recommended):**
- Most stable and tested integration
- Apps should appear automatically in the app grid
- Check LB Phone configuration if apps don't show
**QB Phone / QS Smartphone:**
- Limited testing - may require additional configuration
- Monitor console for specific error messages
- Consider switching to LB Phone if issues persist
### Database Connection Problems
1. Verify MySQL resource is running
2. Check table creation in database
3. Validate Config.TableName settings
### Common Error Solutions
```bash
# Framework not detected
# Solution: Install ESX, QBCore, or QBX
# Phone system not found
# Solution: Install lb-phone, qb-phone, or qs-smartphone
# ox_lib not found
# Solution: Install ox_lib dependency
```
## ๐ Documentation
- ๐ **[LB Phone Setup Guide](LB_PHONE_SETUP.md)** - Detailed LB Phone integration
- ๐ง **[Framework Implementation](FRAMEWORK_IMPLEMENTATION.md)** - Technical details
- ๐ **[Universal Implementation](UNIVERSAL_IMPLEMENTATION_COMPLETE.md)** - Compatibility guide
## ๐ Migration
### From QB Phone to LB Phone
1. Backup existing app data
2. Update phone system references
3. Test all features
4. Import user data if needed
### Framework Migration
The apps automatically adapt to your framework:
- No code changes required
- Universal compatibility layer
- Automatic detection and configuration
## โ
Testing Checklist
After installation:
- [ ] All apps appear in phone interface
- [ ] Apps open without errors
- [ ] Framework detection working
- [ ] Database tables created (if required)
- [ ] NUI interfaces load correctly
- [ ] Server callbacks function properly
- [ ] **Recommended**: Test with LB Phone first
- [ ] Test in development environment before production
- [ ] Monitor console for any warning messages
## ๐ Support
For issues or questions:
1. **Check Console**: Look for error messages in F8 console
2. **Run Validation**: Use `./validate_phone_apps.sh`
3. **Verify Setup**: Follow installation guide step by step
4. **Update Resources**: Ensure all dependencies are current
5. **Try LB Phone**: If using QB Phone/QS Smartphone, test with LB Phone
6. **Report Issues**: Help improve the apps by reporting bugs and feedback
> **๐ค Community Feedback Welcome**
> Since these apps are in active development, your feedback is valuable! Please report any issues, suggestions, or successful implementations to help improve compatibility across different setups.
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ค Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Run validation script
5. Submit a pull request
## ๐ Changelog
### v1.0.0-beta (Current)
- โ
Universal framework compatibility (ESX/QB/QBX)
- โ
Multi-phone system support (LB/QB/QS)
- โ
5 complete phone apps included
- โ
Automatic validation and testing
- โ
Comprehensive documentation
- โ
Production-ready code quality
- ๐ **Best tested with LB Phone**
- โ ๏ธ **Beta status**: Requires further testing in production environments
### Upcoming
- ๐ Enhanced QB Phone and QS Smartphone compatibility
- ๐ Extended production testing
- ๐ Performance optimizations
- ๐ Additional features based on community feedback
---
#### Made with โค๏ธ for the FiveM community
*Compatible with all major frameworks and phone systems - just install and go!*