Skip to content

A FiveM script that adds a medical treatment feature to your server. Players can interact with a designated NPC at a specified location, pay a configurable treatment cost, and receive revival if needed.

License

Notifications You must be signed in to change notification settings

vanishdevs/vanish_checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check-in Script

This script adds a medical treatment functionality to your FiveM server, allowing players to receive treatment from a designated NPC at a specified location. Players can interact with the NPC, pay a treatment cost, and get revived if needed.

Features

  • Fully integrated for the ESX framework
  • Configurable option to use this script via targeting (ox_target)
  • Configurable treatment location using vector4 coordinates.
  • Adjustable cost for treatment in the in-game currency.
  • Support for different notification systems (e.g., pNotify, in-game chat).
  • Universal notification function for both client-side and server-side scripts.

Installation

  1. Download the script files.
  2. Place the script files in your FiveM server's resources folder.
  3. Ensure that you have the required dependencies installed (e.g., ESX framework).
  4. Add the script to your server configuration file (server.cfg) using ensure or start.

Configuration

The script is customizable through the config.lua file. Adjust the following parameters to suit your server:

  • Debug: Whether to debug the system to see where it fails or not.
  • Framework: Specify the framework for the script.
  • UseTarget: If you want to use a targeting system, set this to true. This enables interaction with the ped (ox_target only).
  • PedSettings: Edit the model and other soon to come features about the ped.
  • locations: The locations where the ped or zone is spawned for interaction, using vector4 for coordinates. Add more coordinates as needed, ensuring proper syntax.
  • requireEMS: The amount of medics/EMS that must be online for this system to work.
  • treatmentCost: Cost of treatment in in-game currency (e.g., dollars).
  • reviveEventTrigger: Trigger your specified event to revive the player here.

Usage

Players can approach the designated treatment location and interact with the NPC to receive treatment. The interaction prompts and costs are configurable.

Notifications

The script supports different notification systems. Customize the ShowNotification function in the config.lua file to match your preferred notification system.

Credits

License

This script is released under the GPL-3.0 License.

About

A FiveM script that adds a medical treatment feature to your server. Players can interact with a designated NPC at a specified location, pay a configurable treatment cost, and receive revival if needed.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages