Skip to main content

Config

With this walkthrough, no dead player will ever be bored again! With many customization options, RiP-Death is suitable for every server, whether soft or hardcore roleplay. Some options are explained here. However this does not represent the original config file.

RiP.Debug

Activates debug mode for prints and commands.

danger
It is recommended to only activate this option on first installation and for testing purposes.

RiP.Hotels

Add unlimited hotels with unlimited rooms

    [1] = {
Menu = vector3(-719.91, -2262.83, 13.46), -- [VECTOR] main menu (lobby) coords (x,y,z)

Image = 'https://image.url/hotel.jpg', -- [STRING] business selling image url (jpg/png)
Description = "Kaufe dir dieses Hotel und vermiete Zimmer als passive Einkommensquelle. Es handelt sich bei diesem Objekt um ein Motel der Mittelklasse für Kurzurlaube oder Menschen auf der Durchreise.",

RoomImage = 'https://image.url/room.jpg', -- [STRING] default room image url (jpg/png) (can be overwritten for each room)
RoomDescription = "This hotel room has its own special charm due to the certain red light aspect. If you wish, you can also access the telephone numbers of a large number of ladies via an enclosed information sheet", -- [STRING] default room description (can be overwritten for each room)

Blip = { -- [OBJECT] remove/set false to disable blip (https://docs.fivem.net/docs/game-references/blips/)
Name = 'Hotel', -- [STRING] blip name
Type = 475, -- [INTEGER] blip sprite
Scale = 0.9, -- [DECIMAL] blip size
Display = 4, -- [INTEGER] blip display type
Color = 13 -- [INTEGER] blip color
},

Ped = { -- https://docs.fivem.net/docs/game-references/ped-models/
Enable = false, -- [BOOLEAN] enable npc on entery
Hash = 0x3293B9CE, -- [HASH] ped hash
Coords = vector4(-719.91, -2262.83, 13.46, 184.25) -- [VECTOR] ped coords (x,y,z,h)
},

RetailPrice = 60000, -- [INTEGER] hotel retail price

Interior = { -- default interior configuration (required if Type = ipl, optional if Type = dimension)
Type = 'ipl', -- [STRING] interior type (ipl/dimension)

-- if Type = ipl then these options are required
Loading = {
Default = { -- add all ipl names for each floor/room registered under RiP.Hotels.Rooms (use *f to replace the floor number and *r for the room-number 01-99)
'johanni_opium_hallway_e0*f_milo_',
'johanni_opium_hotel_e0*f_r*r_milo_',
'johanni_opium_penthouse_e0*f_milo_',
},
Floors = { -- all floors floor registered under RiP.Hotels.Rooms with the height (z-coords)
[1] = 30.4, -- [INTEGER-FLOAT] floor index - height coords
[2] = 39.0,
[3] = 47.5,
[4] = 57.0,
[5] = 65.5,
[6] = 74.5
},
},
},

Upgrades = { -- default room upgrades (see RiP.Upgrades) (can be overwritten for each room)
['storage'] = 0, -- [STRING-INTEGER] storage uprade - upgrade level (0-3)
['equipment'] = 0 -- [STRING-INTEGER] equipment upgrade - upgrade level (0-3)
},

Rooms = { -- hotel rooms per floor
[1] = { -- [INTEGER-TABLE] unique floor index (1-99) (if Type = ipl has to be registered under RiP.Hotels.Interior.Loading.Floors)
[1] = { -- [INTEGER-Table] unique (per floor) room number (1-99)
Entery = vector3(-694.65, -2260.1, 30.4), -- [VECTOR] entery coords from outside (x,y,z)

RoomImage = nil, -- [STRING:OPTIONAL] room image url (jpg/png)
RoomDescription = nil, -- [STRING:OPTIONAL] default room description


Price = 1000, -- [INTEGER] default price per night
Unlock = 10000, -- [INTEGER] unlock price for hotel owners

Upgrades = { -- [TABLE:OPTIONAL] overwrite RiP.Hotels.Upgrades for this room
['storage'] = 3,
['equipment'] = 3
},

Interior = { -- [TABLE] interior settings
Type = 'ipl', -- [STRING] interior type (ipl, mlo, dimension)

Entery = vector4(-694.78, -2261.28, 30.4, 351.54), -- [VECTOR] entery/exit coords inside room with heading inside the room (x,y,z,h)
Door = 'johanni_opium_door01', -- [STRING|TABLE:OPTIONAL] door object name(s) for automatic doorlock (only if Type = ipl|mlo)
Range = 12, -- [INTEGER] range around entery after which the player left room automaticly (only if Type = ipl|mlo)

Storage = vector3(-697.11, -2262.51, 30.4), -- [VECTOR:OPTIONAL] room storage coords (x,y,z) (remove to disable the feature for this room)
Clothing = vector3(-697.57, -2268.24, 30.4), -- [VECTOR:OPTIONAL] room closet coords (x,y,z) (remove to disable the feature for this room)
Minibar = vector3(-690.41, -2265.76, 30.4), -- [VECTOR:OPTIONAL] room minibar coords (x,y,z) (remove to disable the feature for this room)
Safe = vector3(-695.05, -2267.98, 30.4), -- [VECTOR:OPTIONAL] room safe coords (x,y,z) (remove to disable the feature for this room)
}
},
}
}
}

RiP.Robbery

Enable room raids with RiP-Robbery

RiP.Robbery = {
Enable = true, -- [BOOLEAN] enable room raids (RiP-Robbery required)
Time = 60, -- [INTEGER] default raid waiting time (in seconds)
Minigame = {
Enable = true, -- [BOOLEAN] enable minigame (RiP-Minigames required)
Type = 'random', -- [STRING] minigame name
Time = 30, -- [INTEGER] minigame time
Attempts = 3 -- [INTEGER] minigame attempts
},
RaidTime = 60, -- [INTEGER] raid time inside the room (in seconds)
Range = 6, -- [INTEGER] raid range around the room entery
Cooldown = 10, -- [INTEGER] raid cooldown in minutes (per room)
}

RiP.Outfits

Set up your own outfit database saving for closet functions

RiP.Outfits = {
Database = 'clothing', -- [STRING] database name for saved outfits
Key = 'id', -- [STRING] unique key for each outfit (database column)
Identifier = 'identifier', -- [STRING] player identifier (database column)
Outfit = 'outfit', -- [STRING] outfit data (database column)
Name = 'name', -- [STRING] outfit name (optional database column)
}

RiP.Minibar

Add unlimited items with a default price to the minibar

RiP.Minibar = {
['bread'] = 4,
['water'] = 3,
}

RiP.Upgrades

Adjust upgrade prices and lables for each upgrade type

RiP.Upgrades = {
['storage'] = { -- unique upgrade name (do NOT change)
[1] = { -- unique upgrade level (do NOT change)
Price = 1000, -- [INTEGER] price for upgrade (per room)
Additional = 100, -- [INTEGER] additional storage slots (weight per room)
Label = "additional 100 slots unlocked"
},
[2] = {
Price = 2000,
Additional = 400,
Label = "additional 400 slots unlocked"
},
[3] = {
Price = 3000,
Additional = 500,
Label = "additional 500 slots unlocked"
},
},
['equipment'] = { -- unique upgrade name (do NOT change)
[1] = { -- unlock closet
Price = 5000, -- [INTEGER] price for upgrade (per room)
Label = "closet unlocked"
},
[2] = { -- unlock minibar
Price = 15000,
Label = "minibar unlocked"
},
[3] = { -- unlock safe
Price = 25000,
Label = "safe unlocked"
},
},
['security'] = { -- [OPTIONAL] unique upgrade name (do NOT change) (only necessary in combination with RiP-Robbery)
[1] = { -- add additional time for raids
Price = 5000, -- [INTEGER] price for upgrade (per room)
Label = "Extend Time",
Value = 60, -- [INTEGER] additional time to RiP.Robbery.Time
},
[2] = { -- add minigame for raids (RiP.Robbery.Minigame)
Price = 15000,
Label = "Difficult Minigames"
},
[3] = { -- disable raids entirely
Price = 25000,
Label = "Prevent Robberies"
},
},
}

RiP.Restarts

Add your server restart times. It will disable all high-risk functions 5 minutes before to avoid unsaved data and glitches

RiP.IconsPath

Add your own items image path from your inventory script (e.g.) to avoid duplicated images and unneccesary downloading

RiP.IconsPath = 'nui://RiP-Inventory/html/img/%s.png'               -- [STRING] file path to item images with '%s' as icon name (e.g. inventory script)

RiP.Translations

We offer comprehensive translations that allow you to change the language of the scripts to any language you require