Skip to content

Commit 359f929

Browse files
committed
rename set to create
1 parent 4c7a071 commit 359f929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ local sessionIdLock = false
4747
---Sets a unique sessionId statebag on the entity.
4848
---@param entity number
4949
---@return integer sessionId
50-
local function setSessionId(entity)
50+
local function createSessionId(entity)
5151
if sessionIdLock then
5252
lib.waitFor(function()
5353
if not sessionIdLock then return true end
@@ -60,7 +60,7 @@ local function setSessionId(entity)
6060
return currentSessionId - 1
6161
end
6262

63-
exports('SetSessionId', setSessionId)
63+
exports('CreateSessionId', createSessionId)
6464

6565
---Caches the vehicle classes the first time this is called by getting the data from a random client.
6666
---Throws an error if there is no cache and no client is connected to get the data from.

0 commit comments

Comments
 (0)