FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add proper types for natives returning arrays by nsamsonov · Pull Request #1 · samp-dev/node · GitHub

/ node Public

Add proper types for natives returning arrays - #1

Open
nsamsonov wants to merge 1 commit into
samp-dev:masterfrom
nsamsonov:ns/array-ret-types
Open

Add proper types for natives returning arrays#1
nsamsonov wants to merge 1 commit into
samp-dev:masterfrom
nsamsonov:ns/array-ret-types

Conversation

Copy link
Copy Markdown

Since we actually know how many values are coming back, we can now do:
const [x, y, z] = samp.callNative('GetPlayerPos", "iFFF", playerid);

This file contains hidden or 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
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.

1 participant


Back | FazBrowse Home | New Git URL