Salam_Dadash Posted March 18, 2021 Share Posted March 18, 2021 Hi. I Want to make a gamemode but I Don't know exactly whether to use Exports or TriggerEvent , which is better ? I Mean to transfer Data or functions within a script to another script. Link to comment
Salam_Dadash Posted March 18, 2021 Author Share Posted March 18, 2021 anybody can help me ? Link to comment
Salam_Dadash Posted March 18, 2021 Author Share Posted March 18, 2021 Carefree man I Mean which one is better ? which one can prevent memory leak ? can u understand this ? Link to comment
Scripting Moderators xLive Posted March 18, 2021 Scripting Moderators Share Posted March 18, 2021 Exports and events are different things - Exports to call a function from a specific resource - TriggerEvent to trigger an event and any resource can add this event to use it 1 hour ago, Salam_Dadash said: which one can prevent memory leak ? None of them, the only way to avoid memory leaks to release things when you no longer need it. 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