https://github.com/matyydev/deadscreen
https://github.com/matyydev/deadscreen
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matyydev/deadscreen
- Owner: MatyyDEV
- License: gpl-3.0
- Created: 2024-10-24T15:36:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-27T10:37:28.000Z (over 1 year ago)
- Last Synced: 2025-02-16T08:16:38.546Z (about 1 year ago)
- Language: Lua
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeadScreen Script for FiveM πͺ¦
## Description π
The DeadScreen script provides a visual interface for players when they die in-game. It displays a gray screen with a countdown timer until respawn, along with the option to manually respawn by pressing the "E" key. If the player doesn't respawn within the specified time, they will be automatically respawned. β³
## Features π
- **Gray Screen Effect**: Displays a gray screen when the player dies. βͺ
- **Countdown Timer**: Shows the time remaining until automatic respawn. β°
- **Manual Respawn**: Players can press "E" to respawn immediately. π
- **Automatic Respawn**: If the player does not respawn manually, they will be automatically respawned after the countdown. β‘
## Installation βοΈ
1. Download the script files.
2. Place the `DeadScreen` folder in your FiveM resources directory.
3. Add `start DeadScreen` to your `server.cfg` file.
4. Restart your server. π
## Configuration βοΈ
- **respawnTime**: Adjust the time (in seconds) for the countdown until automatic respawn. The default is set to 300 seconds (5 minutes). β±οΈ
## Usage π
1. When the playerβs health drops to zero, the gray screen will appear with a countdown timer. π
2. Press the "E" key to respawn immediately. π
3. If no action is taken, the player will respawn automatically after the countdown. π
## Customization π¨
You can customize the text colors and font size in the `client.lua` file. Modify the following lines as needed:
```lua
SetTextScale(0.5, 0.5) -- Adjusts text size
SetTextColour(200, 0, 0, 200) -- Adjusts text color (RGBA format)
```
## Issues and Troubleshooting β οΈ
If you encounter any issues with the script:
- Ensure that there are no conflicting scripts affecting player respawn.
- Check the console for any error messages and resolve them accordingly. π οΈ
## License π
This script is free to use and modify. Please credit the original author if you make significant changes or use it in your own projects. π
## Contact π§
For support or inquiries, please contact [Your Name/Your Contact Information]. π¬