nasserdfdd Posted August 21, 2015 Share Posted August 21, 2015 hi all so i created a simple gui in client side ok so i am making another script call this script to open the window so can anyone tell me how to call it to open the gui - window inventory_menu_window = guiCreateWindow(0.0115,0.1583,0.3005,0.6189,"My inventory",true) guiWindowSetSizable(inventory_menu_window,false) guiSetVisible(inventory_menu_window,false) inventory_menu_use = guiCreateButton(0.0503,0.9038,0.2956,0.0663,"Use",true,inventory_menu_window) any example note:if u did not undersand me i created this gui i want to created an other script which is a marker when player hit the marker i want this gui to show Link to comment
nasserdfdd Posted August 21, 2015 Author Share Posted August 21, 2015 server error 404 and pls simple example Link to comment
JR10 Posted August 21, 2015 Share Posted August 21, 2015 Check it again. call meta.xml: <export function='showWindow' type='client'/> Client-side: function showWindow() guiSetVisible(window, true) end And from the other resource, in a client-side script: exports.resource_name:showWindow() Link to comment
nasserdfdd Posted August 21, 2015 Author Share Posted August 21, 2015 Check it again. callmeta.xml: <export function='showWindow' type='client'/> Client-side: function showWindow() guiSetVisible(window, true) end And from the other resource, in a client-side script: exports.resource_name:showWindow() do i put this in client or server side exports.resource_name:showWindow() Link to comment
JR10 Posted August 21, 2015 Share Posted August 21, 2015 client-side. The export's type is client-side. 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