-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rdr): add NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID as a Cfx native
- this native was 'hidden' and didn't have a native declaration since it was removed in RDR, but is generally useful and saves extra native calls - this also duplicates the existing overrides that FiveM has so calling on non-existent net ids/object ids show as a ScRT warning instead of a citizen-core-rdr3
- Loading branch information
1 parent
72c2081
commit 91cbd2a
Showing
3 changed files
with
55 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
ns: CFX | ||
apiset: client | ||
game: rdr3 | ||
--- | ||
## NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID | ||
|
||
```c | ||
BOOL NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID(int netId); | ||
``` | ||
## Parameters | ||
* **netId**: The network id to check | ||
## Return value | ||
Returns `true` if both the network id exist, and the network id has a game object. |