-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from zfbx/v7wip
v7 features and refactoring
- Loading branch information
Showing
61 changed files
with
1,531 additions
and
1,743 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--[[ | ||
- This file is part of zdiscord. | ||
- Copyright (C) 2021 Tony/zfbx | ||
- source: <https://github.com/zfbx/zdiscord> | ||
- | ||
- This work is licensed under the Creative Commons | ||
- Attribution-NonCommercial-ShareAlike 4.0 International License. | ||
- To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ | ||
- or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. | ||
--]] | ||
|
||
RegisterNetEvent(GetCurrentResourceName()..':kill', function() | ||
SetEntityHealth(PlayerPedId(), 0) | ||
end) | ||
|
||
RegisterNetEvent(GetCurrentResourceName()..':teleport', function(x, y, z, withVehicle) | ||
x = tonumber(x) | ||
y = tonumber(y) | ||
z = tonumber(z) | ||
if (withVehicle) then | ||
SetPedCoordsKeepVehicle(PlayerPedId(), x, y, z) | ||
else | ||
SetEntityCoords(PlayerPedId(), x, y, z); | ||
end | ||
end) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.