illenium-appearance
illenium-appearance copied to clipboard
Pass onSubmit callback to CreateFirstCharacter event
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.