Skip to content

โšฐ๏ธ FX-GRAVEROBBERY โ€‹

Advanced grave robbery system for RedM with time restrictions, law system, reward system, and full framework compatibility.


๐Ÿ“ฆ INSTALLATION โ€‹

bash
ensure fx-graverobbery

โ€ข Place the script inside resources/fx-graverobbery โ€ข Add ensure fx-graverobbery to your server.cfg โ€ข Restart your server


๐Ÿ“ฆ VORP ITEM INSTALL โ€‹

sql
INSERT INTO items (...)
VALUES
('shovel', 'Shovel', ...)

โ€ข Required item for grave robbery โ€ข Players must have shovel to start robbery โ€ข Can be disabled from config


โš™๏ธ BASIC CONFIG โ€‹

lua
Config.Language = "en"
Config.Webhook = ""

โ€ข Language โ†’ system language โ€ข Webhook โ†’ logs robbery events


๐ŸŽฎ KEY SYSTEM โ€‹

lua
Config.Keybinds = {
    ["startrobbery"] = 0x760A9C6F,
    ["prayanim"] = 0x2CD5343E,
    ["exit"] = 0x156F7119,
}

โ€ข Defines player controls โ€ข startrobbery โ†’ start digging โ€ข prayanim โ†’ play animation โ€ข exit โ†’ cancel action


๐Ÿงฑ SHOVEL REQUIREMENT โ€‹

lua
Config.ShovelItem = {item = "shovel", label = "Shovel"}

โ€ข Required item to rob graves โ€ข Set to false to disable requirement


โš™๏ธ ROBBERY SETTINGS โ€‹

lua
Config.RobberySetting = {
    RobberyDelay = 30,
    ActiveJobDistance = 300,
    ActiveJobs = {
        ["sheriff"] = 0,
    },
}

โ€ข RobberyDelay โ†’ cooldown per grave โ€ข ActiveJobDistance โ†’ job proximity requirement โ€ข ActiveJobs โ†’ required law presence


lua
Config.RobberySetting.TimeInterval = true
Config.RobberySetting.Start = 24
Config.RobberySetting.Finish = 5

โ€ข Restricts robbery to specific hours โ€ข Example โ†’ only night robbery


lua
Config.RobberySetting.ProgressBarTime = 5

โ€ข Digging duration (seconds)


๐Ÿšจ LAW / ALERT SYSTEM โ€‹

lua
Config.RobberySetting.NotifyChancePercentage = 100
Config.RobberySetting.NotifyRange = 200.0

โ€ข Chance to notify law enforcement โ€ข NotifyRange โ†’ distance of alert


lua
Config.AlertBlips = {
    blipname = "Grave robbery !",
    blipsprite = -2018361632,
}

โ€ข Creates map alert for law โ€ข Helps tracking robbery location


๐ŸŽ REWARD SYSTEM โ€‹

lua
Config.Rewards = {
    MaxRewardItemCount = 2,
    RewardChance = 100,
}

โ€ข MaxRewardItemCount โ†’ max item types โ€ข RewardChance โ†’ chance to receive items


lua
Config.Rewards.Items = {
    [1] = {item = "water", count = 4, chance = 100},
    [5] = {item = "goldnugget", count = 1, chance = 10},
}

โ€ข Defines loot pool โ€ข chance โ†’ drop probability


lua
Config.Rewards.MoneyChance = 50
Config.Rewards.Cash = math.random(10, 50)

โ€ข Chance to receive money โ€ข Cash โ†’ reward amount


๐ŸŽจ VISUAL SYSTEM โ€‹

lua
Config.DrawSetting = {
    DrawMarker = {distance = 2},
    DrawLight = {distance = 2},
    DrawTexture = {distance = 10},
}

โ€ข Controls visual indicators โ€ข Marker โ†’ ground indicator โ€ข Light โ†’ light effect โ€ข Texture โ†’ UI marker


๐Ÿšซ BLACKLIST ZONE โ€‹

lua
Config.BlacklistZone = {
    -- vector3(...)
}

โ€ข Prevents robbery in restricted areas โ€ข Example โ†’ towns, churches


โšฐ๏ธ GRAVE SYSTEM โ€‹

lua
Config.GraveProps = {
    "p_gravestone01x",
    "p_gravestone04x",
}

โ€ข Defines valid grave props โ€ข Only these props can be robbed


๐Ÿ”” NOTIFY SYSTEM โ€‹

lua
Notify({
  text = "Grave Robbery Started",
  type = "success"
})

โ€ข Framework-based notification system โ€ข Supports VORP / RSG / REDEMRP โ€ข Fully customizable


โš™๏ธ SERVER CONFIG โ€‹

lua
SV_Config.Webhook = {
    url = "",
    logo = "",
    banner = "",
}

โ€ข Used for logging system โ€ข Sends robbery logs to Discord


โš ๏ธ IMPORTANT NOTES โ€‹

โ€ข Shovel item must exist in database โ€ข ActiveJobs must match your job names โ€ข TimeInterval must be configured properly โ€ข Rewards must have valid items โ€ข GraveProps must match map props


๐Ÿšจ COMMON MISTAKES โ€‹

โ€ข Missing shovel item โ€ข Wrong job names โ€ข Invalid reward items โ€ข Time restriction blocking robbery โ€ข No graves detected


๐Ÿ SUMMARY โ€‹

FX-GraveRobbery provides:

โ€ข Dynamic grave robbery system โ€ข Law enforcement alert system โ€ข Time-based gameplay โ€ข Reward & loot system โ€ข Full framework compatibility


ยฉ Fixitfy Development

โšก Premium RedM scripts crafted with performance & quality in mind.