-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add element data compatibility layer
and few smaller changes
- Loading branch information
Showing
5 changed files
with
117 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
local function onClientSupermanSync(supermanServerData) | ||
syncSupermansData(supermanServerData) | ||
end | ||
addEvent("onClientSupermanSync", true) | ||
addEventHandler("onClientSupermanSync", localPlayer, onClientSupermanSync) | ||
if (not SUPERMAN_USE_ELEMENT_DATA) then | ||
addEvent("onClientSupermanSync", true) | ||
addEventHandler("onClientSupermanSync", localPlayer, onClientSupermanSync) | ||
end | ||
|
||
local function onClientSupermanSetData(dataKey, dataValue) | ||
setSupermanData(source, dataKey, dataValue) | ||
end | ||
addEvent("onClientSupermanSetData", true) | ||
addEventHandler("onClientSupermanSetData", root, onClientSupermanSetData) | ||
if (not SUPERMAN_USE_ELEMENT_DATA) then | ||
addEvent("onClientSupermanSetData", true) | ||
addEventHandler("onClientSupermanSetData", root, onClientSupermanSetData) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters