mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Added pvp to esx, fixes #302
This commit is contained in:
+6
-3
@@ -72,9 +72,12 @@ AddEventHandler('playerSpawned', function()
|
||||
|
||||
TriggerEvent('esx:restoreLoadout') -- restore loadout
|
||||
|
||||
isLoadoutLoaded = true
|
||||
isPlayerSpawned = true
|
||||
isDead = false
|
||||
isLoadoutLoaded, isPlayerSpawned, isDead = true, true, false
|
||||
|
||||
if Config.EnablePvP then
|
||||
SetCanAttackFriendly(playerPed, true, false)
|
||||
NetworkSetFriendlyFireOption(true)
|
||||
end
|
||||
end)
|
||||
|
||||
AddEventHandler('esx:onPlayerDeath', function()
|
||||
|
||||
Reference in New Issue
Block a user