CritteRo / fivem-scaleform-lib

A library of GTA 5 scaleforms for FiveM. All scaleforms can be activated using events.
28 stars 17 forks source link

missionQuit can only be called one time #4

Closed Scania01 closed 3 years ago

Scania01 commented 3 years ago

Hey there! I can call missionQuit only one time. When I try to do a second time, I only hear the sounds, but it doesn't appear

CritteRo commented 3 years ago

Hi @Scania01

I think I found the issue. It looks like the "TRANSITION_OUT" function is causing the scaleform to not run the second time.

https://github.com/CritteRo/fivem-scaleform-lib/blob/93529648e0ee2b68375e90ee8776afbe8443aaef/critScaleforms/client/cl_scaleform_functions.lua#L115-L121

A fix would be to comment the entire function out (which I would do for now), but I think the scaleform needs a fade In function too.

Scania01 commented 3 years ago

Okay 👍

PhilippRedel commented 3 years ago

Should be fixed with the #6