roaddog Posted February 15, 2015 Posted February 15, 2015 Hello, so when i do if I want to make it server and client script, It can be done by adding "shared" type? It also applies to the export function? I didnt find any explanation about them in tutorials so I start this thread. One more thing, does shared script get downloaded by client like client script does? That's all, Thank you. You gone learn today. I work my ass off, but I still can't pay tho.
JR10 Posted February 15, 2015 Posted February 15, 2015 Yes you can do that with 'shared'. 'shared' also works with exports, you can do: <export function="functionName" type="shared"/> Yes, it gets downloaded to the client. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
roaddog Posted February 15, 2015 Author Posted February 15, 2015 Alright, thanks for the quick reply. Edit: wait, what about I have a client/server script and I want an export function to be shared? and either way, I have a shared script, but I want an export function to be in client? You gone learn today. I work my ass off, but I still can't pay tho.
MIKI785 Posted February 15, 2015 Posted February 15, 2015 If you want to use shared exported function the script defining the function has to be on both sides (client & server, ie. shared). If a script is shared you can make an export for either client or server side only. It's logical, really. Does that answer your question? I didn't fully understand. Lua Scripter Owner of mshost.cz MTA portal.
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