This commit is contained in:
Mycroft
2021-04-29 19:53:32 +01:00
parent 75d7a63ec2
commit 7d2488e40c
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -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())
+1
View File
@@ -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