Skip to content

feat(scripting/v8): add and update global declarations documentation#3780

Open
AvarianKnight wants to merge 1 commit intocitizenfx:masterfrom
AvarianKnight:tweak/update-js
Open

feat(scripting/v8): add and update global declarations documentation#3780
AvarianKnight wants to merge 1 commit intocitizenfx:masterfrom
AvarianKnight:tweak/update-js

Conversation

@AvarianKnight
Copy link
Contributor

I noticed that RegisterNetEvent didn't have a global declaration and... two hours later everything has declaration and documentation

@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Jan 16, 2026
This adds global definitions for functions that previously didn't have any:
- printError
- RegisterNetEvent
- Citizen.invokeNativeByHash
- msgpack_pack
- msgpack_unpack

This removes an old global declaration for a function that doesn't exist
- Citizen.invokeFunctionReference

Adjusts `SendNUIMessage` to only take `object` types, since it requires
an object type for JSON.

This adds a bunch of documentation to all of the global functions to try
and describe what they do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs a preliminary assessment to determine the urgency and required action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant