Skip to content

Commit 63f5852

Browse files
Merge pull request #1441 from esx-framework/dev
ESX 1.11.0 Release
2 parents 64e9a2c + 5cd3a03 commit 63f5852

File tree

108 files changed

+5105
-2773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+5105
-2773
lines changed

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"Lua.diagnostics.globals": [
3+
"MySQL",
4+
"GetPlayerTimeOnline",
5+
"SetEntityOrphanMode"
6+
]
7+
}

CODE_OF_CONDUCT.md

-14
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,3 @@ This code of conduct and its related procedures also applies to unacceptable beh
7878
## 10. Contact info
7979

8080
81-
82-
## 11. License and attribution
83-
84-
The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
85-
86-
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
87-
88-
_Revision 2.3. Posted 6 March 2017._
89-
90-
_Revision 2.2. Posted 4 February 2016._
91-
92-
_Revision 2.1. Posted 23 June 2014._
93-
94-
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._

[core]/cron/fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ game 'gta5'
44
author 'ESX-Framework'
55
description 'Allows resources to Run tasks at specific intervals.'
66
lua54 'yes'
7-
version '1.10.10'
7+
version '1.11.0'
88

99
server_script 'server/main.lua'

[core]/cron/server/main.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ function OnTime(time)
1717
for i = 1, #Jobs, 1 do
1818
local scheduledTimestamp = os.time({
1919
hour = Jobs[i].h,
20-
minute = Jobs[i].m,
21-
second = 0, -- Assuming tasks run at the start of the minute
20+
min = Jobs[i].m,
21+
sec = 0, -- Assuming tasks run at the start of the minute
2222
day = os.date("%d", time),
2323
month = os.date("%m", time),
2424
year = os.date("%Y", time),
2525
})
2626

2727
if time >= scheduledTimestamp and (not LastTime or LastTime < scheduledTimestamp) then
28-
Jobs[i].cb(Jobs[i].h, Jobs[i].m)
28+
local d = os.date('*t', scheduledTimestamp).wday
29+
Jobs[i].cb(d, Jobs[i].h, Jobs[i].m)
2930
end
3031
end
3132
end

[core]/es_extended/client/common.lua

+28-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1-
exports("getSharedObject", function()
2-
return ESX
3-
end)
1+
Core = {}
2+
Core.Input = {}
3+
Core.Events = {}
4+
5+
ESX.PlayerData = {}
6+
ESX.PlayerLoaded = false
7+
ESX.playerId = PlayerId()
8+
ESX.serverId = GetPlayerServerId(ESX.playerId)
9+
10+
ESX.UI = {}
11+
ESX.UI.Menu = {}
12+
ESX.UI.Menu.RegisteredTypes = {}
13+
ESX.UI.Menu.Opened = {}
14+
15+
ESX.Game = {}
16+
ESX.Game.Utils = {}
17+
18+
CreateThread(function()
19+
while not Config.Multichar do
20+
Wait(100)
421

5-
AddEventHandler("esx:getSharedObject", function()
6-
local Invoke = GetInvokingResource()
7-
error(("Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/tutorials-esx/sharedevent for how to fix!"):format(Invoke))
22+
if NetworkIsPlayerActive(ESX.playerId) then
23+
ESX.DisableSpawnManager()
24+
DoScreenFadeOut(0)
25+
Wait(500)
26+
TriggerServerEvent("esx:onPlayerJoined")
27+
break
28+
end
29+
end
830
end)

0 commit comments

Comments
 (0)