Skip to content

Commit

Permalink
rename set to create
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Sep 25, 2024
1 parent 4c7a071 commit 359f929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ local sessionIdLock = false
---Sets a unique sessionId statebag on the entity.
---@param entity number
---@return integer sessionId
local function setSessionId(entity)
local function createSessionId(entity)
if sessionIdLock then
lib.waitFor(function()
if not sessionIdLock then return true end
Expand All @@ -60,7 +60,7 @@ local function setSessionId(entity)
return currentSessionId - 1
end

exports('SetSessionId', setSessionId)
exports('CreateSessionId', createSessionId)

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

0 comments on commit 359f929

Please sign in to comment.