mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Update main.lua
This commit is contained in:
@@ -16,6 +16,7 @@ Config = {
|
|||||||
groups = json.decode(GetConvar("core:groups", "[]"))
|
groups = json.decode(GetConvar("core:groups", "[]"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Discord rich presence.
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
SetDiscordAppId(Config.discordAppId)
|
SetDiscordAppId(Config.discordAppId)
|
||||||
SetDiscordRichPresenceAsset(Config.discordAsset)
|
SetDiscordRichPresenceAsset(Config.discordAsset)
|
||||||
@@ -35,6 +36,7 @@ CreateThread(function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Pause menu information.
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
AddTextEntry("FE_THDR_GTAO", Config.serverName)
|
AddTextEntry("FE_THDR_GTAO", Config.serverName)
|
||||||
local sleep = 500
|
local sleep = 500
|
||||||
@@ -52,3 +54,15 @@ CreateThread(function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("playerSpawned", function()
|
||||||
|
print("^0ND Framework support discord: ^5https://discord.gg/Z9Mxu72zZ6")
|
||||||
|
SetCanAttackFriendly(PlayerPedId(), true, false)
|
||||||
|
NetworkSetFriendlyFireOption(true)
|
||||||
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("onResourceStart", function(resourceName)
|
||||||
|
if resourceName ~= GetCurrentResourceName() then return end
|
||||||
|
SetCanAttackFriendly(PlayerPedId(), true, false)
|
||||||
|
NetworkSetFriendlyFireOption(true)
|
||||||
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user