Cronoss Posted February 13, 2022 Share Posted February 13, 2022 Well, I'm trying to make an Event from Server-Side to Client-Side so the camera of the player fade in black and backs to normal when the event it's called, but for some reason I got this new error that I never saw before, "stack overflow", I searched and It's a problem that happens when you accidentaly make a infinite loop, but what's wrong with this?? function fadeCamera() fadeCamera(source, true, 0.5, 0, 0, 0) setTimer(function() fadeCamera(source, false) end, 1500, 1, source) end addEvent("camaraFade", true) addEventHandler("camaraFade",getRootElement(), fadeCamera) Link to comment
Moderators IIYAMA Posted February 13, 2022 Moderators Share Posted February 13, 2022 11 minutes ago, Cronoss said: what's wrong with this?? You named your own function the same as the MTA function. function fadeCamera() fadeCamera(source, true, 0.5, 0, 0, 0) end 1 Link to comment
Cronoss Posted February 13, 2022 Author Share Posted February 13, 2022 (edited) Damn, didn't notice until now, thank you didn't notice until now Edited February 13, 2022 by Cronoss 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now