Jump to content

help me pls


nasserdfdd

Recommended Posts

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

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
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() 

do i put this in client or server side

exports.resource_name:showWindow() 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...