-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
137 lines (115 loc) · 4.99 KB
/
Copy pathconfig.lua
File metadata and controls
137 lines (115 loc) · 4.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
-- ============================================
-- 🐉 RDE SLEEPMOD - CONFIG v1.3.0
-- Proximity Loading | Statebag Sync | ox_core
-- Author: Red Dragon Elite | SerpentsByte
-- ============================================
Config = {}
-- ============================================
-- 🌍 LOCALIZATION
-- ============================================
Config.DefaultLanguage = 'en'
Config.Languages = {
en = {
success = 'Success', error = 'Error', warning = 'Warning',
searching_pockets = 'Searching pockets...', carrying_player = 'Carrying player...',
press_release = 'Press [E] to release', inventory_opened = 'Inventory opened',
inventory_failed = 'Could not access inventory', player_carried = 'Now carrying player',
player_released = 'Player released', already_carrying = 'Already carrying someone',
rob_player = 'Rob Player', rob_description = 'Search their pockets',
carry_player = 'Carry Player', carry_description = 'Pick up and carry',
wake_player = 'Wake Player', wake_description = 'Force wake up (Admin)',
no_permission = 'You do not have permission', admin_only = 'Admin only',
player_woken = 'Player has been woken up', sleeping = 'Sleeping',
offline = 'Offline', too_far = 'Too far away',
},
de = {
success = 'Erfolg', error = 'Fehler', warning = 'Warnung',
searching_pockets = 'Durchsuche Taschen...', carrying_player = 'Trage Spieler...',
press_release = 'Drücke [E] zum Ablegen', inventory_opened = 'Inventar geöffnet',
inventory_failed = 'Konnte nicht auf Inventar zugreifen', player_carried = 'Trage jetzt Spieler',
player_released = 'Spieler abgelegt', already_carrying = 'Trägst bereits jemanden',
rob_player = 'Spieler ausrauben', rob_description = 'Durchsuche Taschen',
carry_player = 'Spieler tragen', carry_description = 'Hebe auf und trage',
wake_player = 'Spieler aufwecken', wake_description = 'Aufwachen zwingen (Admin)',
no_permission = 'Keine Berechtigung', admin_only = 'Nur für Admins',
player_woken = 'Spieler wurde aufgeweckt', sleeping = 'Schlafend',
offline = 'Offline', too_far = 'Zu weit entfernt',
}
}
function GetLanguageString(key)
local lang = Config.Languages[Config.DefaultLanguage]
return lang and lang[key] or key
end
-- ============================================
-- ⚙️ PERFORMANCE & PROXIMITY
-- ============================================
Config.Debug = false -- Set true for verbose console output
Config.Performance = {
renderDistance = 200.0,
despawnDistance = 250.0,
proximityTick = 1000,
maxVisiblePeds = 50,
skinApplyDelay = 200,
animApplyDelay = 100,
}
-- ============================================
-- 🎮 GAMEPLAY
-- ============================================
Config.MaxSlots = 50
Config.MaxWeight = 100000
Config.RobDuration = 3500
Config.RobDistance = 2.5
Config.CarryDistance = 2.5
Config.InvinciblePeds = true
Config.CarryOffset = {
x = 0.27, y = 0.15, z = 0.63,
pitch = 0.5, roll = 0.5, yaw = 0.0
}
-- ============================================
-- 😴 SLEEPING ANIMATIONS
-- ============================================
-- ONLY @idle_a clips here — these are proper looping sleep anims.
-- @base clips (intro/lie-down) are played automatically by SpawnSleepingPed
-- as a one-shot before the loop kicks in. Do NOT add @base clips here.
--
-- All dicts are ambient world anims — always loaded, no mission dependency.
Config.SleepingAnimations = {
{ dict = 'amb@world_human_bum_slumped@male@laying_on_back@idle_a', clip = 'idle_a' },
{ dict = 'amb@world_human_bum_slumped@male@laying_on_left_side@idle_a', clip = 'idle_a' },
{ dict = 'amb@world_human_bum_slumped@male@laying_on_right_side@idle_a', clip = 'idle_a' },
}
Config.RobAnimation = {
dict = 'mini@repair',
clip = 'fixing_a_ped'
}
Config.CarryAnimation = {
carrier = { dict = 'missfinale_c2mcs_1', clip = 'fin_c2_mcs_1_camman' },
carried = { dict = 'nm', clip = 'firemans_carry' }
}
-- ============================================
-- 🛡️ ADMIN
-- ============================================
Config.AdminSystem = {
acePermission = 'rde.sleepmod',
steamIds = { 'steam:110000101605859' },
oxGroups = { ['admin'] = 0, ['superadmin'] = 0, ['management'] = 0, ['owner'] = 0 },
checkOrder = {'ace', 'oxcore', 'steam'}
}
-- ============================================
-- 🎨 UI
-- ============================================
Config.TargetDistance = 2.5
Config.TargetIcons = {
rob = 'fas fa-magnifying-glass',
carry = 'fas fa-people-carry-box',
wake = 'fas fa-bell',
}
-- ============================================
-- 📊 DATABASE
-- ============================================
Config.DatabaseTable = 'rde_sleepmod'
Config.AutoCreateTable = true
-- ✅ Column name in your playerskins table that maps to ox_core charId
-- Most setups use 'citizenid', some use 'charid' — check your DB
Config.PlayerSkinsColumn = 'citizenid'
return Config