Moderators IIYAMA Posted January 1, 2013 Moderators Posted January 1, 2013 How can you make data only be able to cross between 2 of the 3 scripts. local and non local If you have 3 server.lua scripts and you want only 2 of the 3 able to use the data, is that possible? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Anderl Posted January 1, 2013 Posted January 1, 2013 (edited) I guess you can't. Edited January 2, 2013 by Guest "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Moderators IIYAMA Posted January 1, 2013 Author Moderators Posted January 1, 2013 ok Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Anderl Posted January 1, 2013 Posted January 1, 2013 But why would you need to share data in two files and not in the third? "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Moderators IIYAMA Posted January 2, 2013 Author Moderators Posted January 2, 2013 to reduce lagg. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Jaysds1 Posted January 2, 2013 Posted January 2, 2013 If the scripts are in the same resource then yes, they could share the same data, but the variable needs to be global. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Anderl Posted January 2, 2013 Posted January 2, 2013 What he said is if he can share the data to two files only and not to a third one. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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