mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
config
This commit is contained in:
+4
-4
@@ -5,7 +5,6 @@ Citizen.CreateThread(function()
|
||||
Citizen.Wait(0)
|
||||
|
||||
if NetworkIsPlayerActive(PlayerId()) then
|
||||
if not Config.UseMulticharacter end
|
||||
TriggerServerEvent('esx:onPlayerJoined')
|
||||
break
|
||||
end
|
||||
@@ -45,9 +44,10 @@ AddEventHandler('esx:playerLoaded', function(playerData)
|
||||
FreezeEntityPosition(PlayerPedId(), true)
|
||||
|
||||
-- enable PVP
|
||||
SetCanAttackFriendly(PlayerPedId(), true, false)
|
||||
NetworkSetFriendlyFireOption(true)
|
||||
|
||||
if Config.EnablePVP then
|
||||
SetCanAttackFriendly(PlayerPedId(), true, false)
|
||||
NetworkSetFriendlyFireOption(true)
|
||||
end
|
||||
-- disable wanted level
|
||||
if not Config.EnableWantedLevel then
|
||||
ClearPlayerWantedLevel(PlayerId())
|
||||
|
||||
@@ -17,6 +17,7 @@ Config.EnableDebug = false -- Use Debug options?
|
||||
Config.EnableDefaultInventory = true -- Display the default Inventory ( F2 )
|
||||
Config.EnableWantedLevel = false -- Use Normal GTA wanted Level?
|
||||
Config.DisableSuperadmin = true -- Disable the use of superadmin
|
||||
Config.EnablePVP = true -- Allow Player to player combat
|
||||
Config.UseMulticharacter = false -- WIP, ADDS multicharacter features
|
||||
Config.UseKashacters = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user