Repository navigation
Expand file tree
/
Copy pathserver_config.lua
More file actions
70 lines (61 loc) · 3.76 KB
/
Copy pathserver_config.lua
File metadata and controls
70 lines (61 loc) · 3.76 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
-- ─────────────────────────────────────────────────────────────────────────────
-- qb-report | Server-side Config (server_config.lua)
-- Bu dosya YALNIZCA server script olarak yüklenir.
-- Webhook URL'i ve hassas ayarlar client tarafına HİÇBİR ZAMAN gönderilmez.
-- ─────────────────────────────────────────────────────────────────────────────
ServerConfig = {}
-- ── Dil ayarı (server tarafı bildirimleri ve Discord için) ───────────────────
-- 'tr' = Türkçe | 'en' = English
ServerConfig.Locale = 'tr'
-- ── Genel ────────────────────────────────────────────────────────────────────
ServerConfig.Cooldown = 120 -- Rapor gönderme bekleme süresi (saniye)
ServerConfig.MaxDescLength = 500 -- Açıklama maksimum karakter
ServerConfig.MaxReports = 200 -- Bellekte tutulacak maksimum rapor sayısı
-- ── Admin Grupları (QBCore fallback) ─────────────────────────────────────────
-- Öncelikli yöntem: server.cfg'de ACE permission tanımı
-- add_ace group.admin roninbase-report.admin allow
-- add_ace group.mod roninbase-report.admin allow
-- add_ace group.superadmin roninbase-report.admin allow
-- add_ace group.superadmin roninbase-report.superadmin allow
-- ACE izni yoksa aşağıdaki QBCore grupları fallback olarak kullanılır.
ServerConfig.AdminGroups = {
'admin',
'superadmin',
'mod',
'moderator',
'rbase',
'god'
}
-- ── SuperAdmin Grupları ───────────────────────────────────────────────────────
-- Geçmiş rapor geçmişine ve admin istatistiklerine yalnızca bu gruplar erişir.
ServerConfig.SuperAdminGroups = {
'rbase',
}
-- ── Rate-Limit (flood koruması) ───────────────────────────────────────────────
-- Bir oyuncu MaxEvents kadar event'i MaxWindow saniye içinde gönderirse banlanır
ServerConfig.RateLimit = {
MaxWindow = 10, -- saniye
MaxEvents = 8, -- bu süre içinde maksimum event sayısı
}
-- ── Geçerli Kategori ID'leri (server-side whitelist) ─────────────────────────
ServerConfig.ValidCategories = {
'cheating', 'rdm', 'vdm', 'toxicity', 'bug', 'other',
}
-- ── Discord Webhook ───────────────────────────────────────────────────────────
ServerConfig.Discord = {
Enabled = true,
Webhook = 'YOUR_DISCORD_WEBHOOK_URL_HERE', -- Webhook URL'ini buraya yaz
BotName = 'Report System',
BotAvatar = 'https://i.imgur.com/HcZHHUR.png',
-- Embed renkleri (ondalık)
Colors = {
NewReport = 15548997, -- Kırmızı
Claimed = 16776960, -- Sarı
Resolved = 5763719, -- Yeşil
},
}
-- ── Log (sunucu konsolu) ──────────────────────────────────────────────────────
ServerConfig.Logging = {
Enabled = true,
Prefix = '^3[qb-report]^0',
}