mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Fixed invisable bug once and for all, closes #13
This commit is contained in:
@@ -12,6 +12,12 @@ function GetInstancedPlayers()
|
||||
return players
|
||||
end
|
||||
|
||||
AddEventHandler('playerDropped', function(reason)
|
||||
if instances[source] then
|
||||
CloseInstance(source)
|
||||
end
|
||||
end)
|
||||
|
||||
function CreateInstance(type, player, data)
|
||||
instances[player] = {
|
||||
type = type,
|
||||
|
||||
Reference in New Issue
Block a user