Configuration
Config = {}
Config.Settings = {
["ShowedItems"] = {
["Time"] = true,
["Job"] = true,
["PlayerCount"] = true,
["PlayerId"] = true,
["ServerName"] = true,
["WeaponHud"] = true,
["RadioHud"] = true,
["VoiceHud"] = true,
["Money"] = {
["Money"] = true,
["Bank"] = true,
["Black"] = true
},
["FoodHud"] = true,
["Speedo"] = true,
["Chat"] = true,
["HudSettings"] = true,
["Safezones"] = true
},
["TickSpeed"] = {
["PlayerData"] = 500,
["Speedo"] = 0,
["WeaponHud"] = 200
},
["HiddenComponents"] = {
2, 6, 7, 8, 9, 13, 20, 17, 1, 4, 3
},
["VoiceSystem"] = {
["System"] = "pma-voice", -- pma-voice | salty-chat
["Range"] = { -- MAXIMUM: 4 RANGES
3,
8,
15,
30
}
},
["UI"] = {
["Title"] = "Revolution",
["SubTitle"] = "Roleplay"
}
}
Config.Needs = {
["Hunger"] = function(fcb)
TriggerEvent("esx_status:getStatus", 'hunger', function(status)
fcb(math.floor((status.val / 1000000 * 100) / 20))
end)
end,
["Thirst"] = function(fcb)
TriggerEvent("esx_status:getStatus", 'thirst', function(status)
fcb(math.floor((status.val / 1000000 * 100) / 20))
end)
end,
}
Config.Speedo = {
["MaxSpeed"] = 320, -- RECOMMENDED
["GetFuel"] = function(vehicle)
return GetVehicleFuelLevel(vehicle)
end
}
Config.Notifications = {
["Notifications"] = {
["PlaySound"] = function()
PlaySoundFrontend(-1, "ATM_WINDOW", "HUD_FRONTEND_DEFAULT_SOUNDSET", true)
end
},
["Announcements"] = {
["PlaySound"] = function()
PlaySoundFrontend(-1, "OTHER_TEXT", "HUD_AWARDS", true)
end
}
}
Config.KeyMappings = {
["Chat"] = {
["Command"] = "openchat",
["Key"] = "T",
["Description"] = "Open Chat"
}
}
Config.Safezones = {
['WΓΌrfelpark'] = {
coords = vector3(199.4375, -935.2621, 30.6869),
radius = 100.0
},
['LCN'] = {
coords = vector3(-1502.0660, 50.7972, 54.7255),
radius = 100.0
}
}
Config.SafeZoneEnterFunction = function(playerPed, vehicle)
isInZone = true
NetworkSetFriendlyFireOption(false)
SetVehicleMaxSpeed(vehicle, 50 / 3.6)
CreateThread(function()
while isInZone do
SetCurrentPedWeapon(playerPed, GetHashKey("WEAPON_UNARMED"), true)
DisablePlayerFiring(playerPed, true)
SetPlayerCanDoDriveBy(playerPed, false)
DisableControlAction(2, 37, true) -- Disable weapon wheel (Tab)
DisableControlAction(0, 106, true) -- Disable in-vehicle weapon selection
DisableControlAction(0, 24, true) -- Disable attack
DisableControlAction(0, 69, true) -- Disable in-vehicle attack
DisableControlAction(0, 70, true) -- Disable in-vehicle attack
DisableControlAction(0, 92, true) -- Disable in-vehicle attack
DisableControlAction(0, 45, true) -- Disable reload
DisableControlAction(0, 80, true) -- Disable vehicle weapon
DisableControlAction(0, 140, true) -- Disable melee attack light
DisableControlAction(0, 250, true) -- Disable melee attack alternate
DisableControlAction(0, 263, true) -- Disable melee attack heavy
DisableControlAction(0, 114, true) -- Disable fly attack
DisableControlAction(0, 257, true) -- Disable attack 2
DisableControlAction(0, 331, true) -- Disable melee attack 3
DisableControlAction(0, 68, true) -- Disable melee attack 4
DisableControlAction(0, 264, true) -- Disable attack 5
Wait(0)
end
end)
end
-- Sicherstellen, dass REVOLUTION.SafeZoneLeaveFunction korrekt ist
Config.SafeZoneLeaveFunction = function(playerPed, vehicle)
isInZone = false
NetworkSetFriendlyFireOption(true)
SetVehicleMaxSpeed(vehicle, GetVehicleHandlingFloat(vehicle, 'CHandlingData', 'fInitialDriveMaxFlatVel'))
end
Config_S = {}
Config_S.Permissions = {
["pd"] = {
"police"
},
["pdrm"] = {
"police"
},
["fib"] = {
"fib"
},
["fibrm"] = {
"fib"
}
}
:root {
/* Main Colors */
--main-clr: #00b2ff;
--clr2: rgba(0, 168, 255, 0.26);
--clr3: rgba(0, 168, 255, 0.2);
--clr4: rgba(0, 178, 255, 0.1);
--shadow-clr: rgba(0, 168, 255, 0.35);
--shadow-clr2: rgba(0, 168, 255, 0.89);
--shadow-clr3: rgba(0, 168, 255, 0.65);
--shadow-clr4: rgba(0, 178, 255, 0.55);
/* Mic & Funk */
--mic-active-clr: #9fff53;
--mic-muted-clr: #ff3e3e;
/* Black Money */
--black-money-clr1: #ff3e3e;
--black-money-clr2: rgba(255, 62, 62, 0.45);
/* Chat */
--chat-clr1: rgba(0, 9, 14, 0.75);
--chat-clr2: rgba(0, 9, 13, 0.95);
/* HUD Settings */
--hud-settings-bg-clr: rgba(0, 6, 10, 0.95);
--hud-settings-close-clr1: #ff003d;
--hud-settings-close-clr2: rgba(255, 0, 61, 0.45);
--hud-settings-close-clr3: rgba(255, 0, 61, 0.76);
--hud-settings-close-clr4: rgba(255, 0, 61, 0.267);
--hud-settings-hvr-clr: rgba(0, 168, 255, 0.07);
--hud-settings-hvr-clr2: rgba(0, 168, 255, 0.1);
/* Speedo */
--speedo-clr: #004e70;
--speedo-icns-activ-clr: #00b2ff;
--speedo-icn-active-shadow-clr: rgba(0, 168, 255, 0.45);
--fuel-bg: rgba(28, 25, 0, 0.45);
--fuel-clr: #c1ff3e;
--fuel-shadow-clr: rgba(193, 255, 62, 0.35);
/* Safezone */
--safezone-main-clr: #cf0;
--safezone-clr1: rgba(26, 33, 8, 0.95);
--safezone-clr2: rgba(30, 37, 0, 1);
--safezone-shadow-clr: rgba(205, 255, 62, 0.45);
/* Drink & Eat */
--drink-main-clr: #00c2ff;
--eat-main-clr: #ffc52e;
/* Notifies */
/*--> Success */
--notify-success-main-clr: #98ea7d;
--notify-success-clr1: rgba(152, 234, 125, 0.35);
--notify-success-shadow-clr: rgba(152, 234, 125, 0.45);
/*--> Error */
--notify-error-main-clr: #d64847;
--notify-error-clr1: rgba(214, 72, 71, 0.35);
--notify-error-shadow-clr: rgba(214, 72, 71, 0.45);
/*--> Warning */
--notify-warning-main-clr: #d69447;
--notify-warning-clr1: rgba(214, 148, 71, 0.35);
--notify-warning-shadow-clr: rgba(214, 148, 71, 0.45);
/*--> Info */
--notify-info-main-clr: #08e0f7;
--notify-info-clr1: rgba(8, 224, 247, 0.35);
--notify-info-shadow-clr: rgba(8, 224, 247, 0.45);
/*--> Announce */
--announce-main-clr: #08e0f7;
--announce-clr1: rgba(8, 224, 247, 0.35);
--announce-shadow-clr: rgba(8, 224, 247, 0.45);
}
!! ONLY CLIENTSIDE
exports["rs_hud_v2"]:SendNotify(TYPE, TITLE, MESSAGE, TIMEOUT)
exports["rs_hud_v2"]:SendProgressbar(TIMEOUT, MESSAGE, function()
print("DONE") -- FUNCTION CALLBACK WHEN ITS DONE
end)
exports["rs_hud_v2"]:SendHelpnotify(KEY, MESSAGE)
exports["rs_hud_v2"]:SendAnnouncement(TITLE, MESSAGE, TIMEOUT)
exports["rs_hud_v2"]:HideHud(true) -- HIDE HUD
exports["rs_hud_v2"]:HideHud(false) -- SHOW HUD
TriggerEvent("rs_hud_v2:SendNotify", TYPE, TITLE, MESSAGE, TIMEOUT)
TriggerEvent("rs_hud_v2:SendProgressbar", TIMEOUT, MESSAGE, function()
print("DONE") -- FUNCTION CALLBACK WHEN ITS DONE
end)
TriggerEvent("rs_hud_v2:SendHelpnotify", KEY, MESSAGE)
TriggerEvent("rs_hud_v2:SendAnnouncement", TITLE, MESSAGE, TIMEOUT)
Last updated