illenium-appearance icon indicating copy to clipboard operation
illenium-appearance copied to clipboard

Pass onSubmit callback to CreateFirstCharacter event

Open BackSH00TER opened this issue 11 months ago • 0 comments

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

BackSH00TER avatar Mar 01 '25 08:03 BackSH00TER