Skip to content

Commit

Permalink
Merge pull request #45 from Fernando-A-Rocha/Fernando-A-Rocha-patch-1
Browse files Browse the repository at this point in the history
Update EXAMPLES.md
  • Loading branch information
Fernando-A-Rocha authored Jun 1, 2024
2 parents 2687bd1 + 10ed1b3 commit 5379eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ If you want to re-spawn a player and keep its custom skin ID, you need to unset

```lua
local data_name = exports.newmodels:getDataNameFromType("player")
local id = tonumber(getElementData(player, data_name))
local id = tonumber(getElementData(thePlayer, data_name))
if id then
removeElementData(player, data_name)
setElementData(source, data_name, id)
removeElementData(thePlayer, data_name)
setElementData(thePlayer, data_name, id)
end
```

0 comments on commit 5379eaf

Please sign in to comment.