Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proper description for IsEntityOnScreen #964

Merged
merged 5 commits into from
Dec 28, 2023

Conversation

WithLithum
Copy link
Contributor

Adds a properly formatted description for IsEntityOnScreen.

I do not consider an example would be needed for this native considering how simple is the native is, and the new description means about the same thing as of the old imported description.

Feel free to edit this PR if you think something is wrong.

@spacevx
Copy link
Contributor

spacevx commented Dec 26, 2023

You need to add the ## Return value and specify what information is returning this native

@@ -8,13 +8,9 @@ ns: ENTITY
BOOL IS_ENTITY_ON_SCREEN(Entity entity);
```

```
Returns true if the entity is in between the minimum and maximum values for the 2d screen coords.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be on the return value instead of deleting.


## Return value

Returns `true` if the the entity is in between the minimum and maximum values for the 2d screen coord; otherwise, `false`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return value need to be after param. Please refer to https://github.com/citizenfx/natives/blob/master/.github/CONTRIBUTING.md

Copy link
Contributor

@PsychoShock PsychoShock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look's good. Please squash it like this to make it cleaner..

@4mmonium 4mmonium merged commit cc7c030 into citizenfx:master Dec 28, 2023
1 check passed
@WithLithum WithLithum deleted the patch-1 branch January 1, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants