1. Post #1

    January 2012
    40 Posts
    Hello how can i run/import serverside scripts inside client side?

    Yes i tryed
    if SERVER then
    
    end
    

  2. Post #2
    Gold Member
    12voltsdc's Avatar
    June 2011
    1,601 Posts
    AddCSLuaFile("")

  3. Post #3

    January 2012
    40 Posts
    AddCSLuaFile("")
    But how can i so run it then you click on a button?

  4. Post #4

    February 2010
    129 Posts
    You can't really use a client-side only code at a server-side script and Vice Versa, however, if the function is shared, it works for both server-side and client-side.
    To send data from the server to the client you can use usermessages.