RedM
  • 🇫🇷Home
  • 🧑‍🌾Ambient NPC
  • ⛺Campement
  • 🃏Card Collection
  • ♟️Chess & Checkers Game
  • 💣Dynamite
  • 🙋Environment animations
  • 🔥Fire sync
  • 🐎Feeding Horse + Syringe
  • 🚭Illicit Sales
  • ⚖️Instances
  • 📥Market Stall
  • 🩺Medical Records
  • 🍲Metabolism
  • 🗣️Mumble Block UI
  • ⏸️Pause Menu
  • ⌨️Quick Keys Menu
  • 💵Reward Loyalty and Total playtime
  • 🖋️Tattoo
  • 🥇Top Serveurs
  • ⚰️Undertaker
  • 💀Wanted
  • 🔫Weapon Cleaning Animation
  • 🏹Weapon Rack
Powered by GitBook
On this page

Undertaker

Script developed for the server LGW⚡WL+18 FR-QC⚡SERIOUS RP✨FPS OPTIMIZED✨UNIQUE MAPPING-SCRIPT

Vorp Core, RedEM 2023 and RSG Core must use job name in Config.jobName

Others Framework must use Client Event :

Client Side

TriggerEvent("UnderBTaker:InitUnderTakerJob")

Server Side

TriggerClientEvent("UnderBTaker:InitUnderTakerJob", source)

The coffins disappear on their own after a while when there are no more players around.

Here is an excerpt from the config.lua file : (parts of the excerpt are hidden) :

Config = {}
Config.DEBUG = false  -- Enable job for all when script stop/start
-- OTHERS FRAMEWORK -> USE TriggerClientEvent("UnderBTaker:InitUnderTakerJob", source) or TriggerEvent("UnderBTaker:InitUnderTakerJob")
-- VORP / REDEM / RSG FRAMEWORK -> USE Config.JobName
Config.jobName = "undertaker"  -- Sets the job name to undertaker.
Config.jobLabel = "Croque-Mort"  -- Sets the job label to "Croque-Mort".
Config.PopupTime = 3  -- seconds -- Sets the time for pop-up notifications to display, in seconds.
-- CORPSE DROP
Config.CanDropCorpse = true -- If cart has been damaged, depends of the cart speed, it can drop corpse and empty coffins.
Config.DropChance = 100 -- Chance to drop a corpse
-- PROMPT
Config.PromptSell = "Sell the body"  -- Text for the prompt to sell a body.
Config.SellKey = keys["V"]  -- Sets the key to initiate the body selling action.
Config.PromptGetCart = "Retrieve the cart"  -- Text for the prompt to get the cart.
Config.CartKey = keys["C"]  -- Sets the key to get the cart.
Config.PromptPutCart = "Put the body"  -- Text for the prompt to place the body in the cart.
Config.CartPutKey = keys["R"]  -- Sets the key to put the body in the cart.
Config.PromptGetBody = "Retrieve a coffin"  -- Text for the prompt to get a coffin.
Config.PromptBodyKey = keys["G"]  -- Sets the key to get a coffin.
-- BLIPS
Config.BlipsCart = -243818172  -- SPRITE Blip that indicates where to get the cart.
Config.BlipsCartName = "Cart - " .. Config.jobLabel  -- NAME Blip that indicates where to get the cart.
Config.BlipsSellName = "Coffin Sales - " .. Config.jobLabel  -- NAME Blip for the coffin sales area.
Config.BlipsSell = 1322310532  -- SPRITE Blip for the coffin sales area.
-- Discord
Config.DiscordWebhook = "" -- Discord canal webhook (ex : https://discord.com/api/webhooks/1212121212/StmZ_AazZZykg69RY1gRZnp7h4121212AZAbAbBlWxyJzaMq)
Config.DiscordName = "BT_UNDERTAKER" -- The title of the Discord message.

-- VEHICLE
Config.CanStoreCart = true -- Allows players to store the cart

Config.CartCoords = { -- Coordinates to retrieve the vehicle
    {
        ["GET"] = { x = 1299.56, y = -1320.52, z = 76.64}, -- Zone where you claim the vehicle
        ["OUT"] = { x = 1291.52, y = -1330.4, z = 77.52, heading = 71.4} -- Zone where the vehicle spawns
    }
    --{ -- Add example
    --    ["GET"] = { x = 1299.56, y = -1320.52, z = 76.64}, -- Zone where you claim the vehicle
    --    ["OUT"] = { x = 291.52, y = -330.4, z = 67.52, heading = 71.4} -- Zone where the vehicle spawns
    --},
    --{
    --    ["GET"] = { x = 1200.2, y = -320.52, z = 36.64}, -- Zone where you claim the vehicle
    --    ["OUT"] = { x = 1100.5, y = -330.4, z = 37.52, heading = 71.4} -- Zone where the vehicle spawns
    --}
  
}

Config.SellCoords = { -- Coordinates of the sale zones, minimum distance between the cart and the sale zone to be able to retrieve a coffin
    { x = 1303.0,  y = -1221.0,  z = 80.8, distance = 60.0 },
     -- Add example
     --{ x = 303.0,  y = -221.0,  z = 20.8, distance = 40.0 },
     --{ x = 402.0,  y = -454.8,  z = 36.2, distance = 80.0 }
}

Config.Prices = {  -- Rewards for selling a body.
    -- RSG Core : Use money types from RSGConfig.Money.MoneyTypes
    -- For example :
    --["cash"] = { chance = 50, min = 2, max = 4 },
    --["bloodmoney"] = { chance = 50, min = 2, max = 4 },
    --
    ["$"] = { chance = 50, min = 2, max = 4 },  -- 50% chance to drop money with a minimum of 2 and a maximum of 4.
    ["Gold"] = { chance = 50, min = 1, max = 1 }  -- 50% chance to drop gold (VORP ONLY).
}

Config.Txt = {  -- A table for storing text messages.
    CantUseThisBody = "You cannot add this body!",  -- Message when a body cannot be added.
    CantSellThisBody = "You cannot sell this body!",  -- Message when a body cannot be sold.
    ZoneVehOrPed = "The area is obstructed by a vehicle or a resident",  -- Message when the area is obstructed.
    TooFar = "Warning, if you go too far the coffin will be abandoned.",  -- Warning message when moving too far.
    FarGone = "You have gone too far."  -- Message when too far away.
}

-- this content is hidden in the excerpt

Last updated 9 months ago

⚰️