Skip to content

Conversation

@BackSH00TER
Copy link

Overview

This PR adds onSubmit as an arg to the qb-clothes:client:CreateFirstCharacter and passes it to InitializeCharacter.

Details

While default qb scripts dont pass any args, some custom scripts utilize this same event and pass through an onSubmit callback function to trigger once the character is created.

In InitializeCharacter it first checks that the onSubmit function is defined before trying to be used. Therefore this change is still safe for scripts that won't be passing any value in for onSubmit.
image

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