-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fivem/state): add native to allow entities to reject client dele…
…tion
- Loading branch information
1 parent
8b93ef2
commit bff6769
Showing
4 changed files
with
70 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
ns: CFX | ||
apiset: server | ||
--- | ||
## SET_ENTITY_REJECTS_CLIENT_DELETION | ||
|
||
```c | ||
void SET_ENTITY_REJECTS_CLIENT_DELETION(Entity entity, bool rejectClientDelete); | ||
``` | ||
Sets a flag for the server to reject any client side deletion of this entity. | ||
This flag will default to the value of "sv_disallowClientDelete" when the entity was created | ||
## Parameters | ||
* **entity**: The entity to reject deletion of | ||
* **rejectClientDelete**: A boolean of whether the server should reject client delete, or accept it |