Jump to content
Sign in to follow this  
maticsito123

GM SYSTEM BOX

Recommended Posts

go to your client
scripts\lua\forms\main
open it and look for

frmGM = UI_CreateForm( "frmGM", FALSE, 480, 20, 300, 545, TRUE, FALSE )

change the function there to this
 

frmGM = UI_CreateForm( "frmGM", FALSE, 480, 20, 300, 545, TRUE, FALSE )
UI_FormSetHotKey( frmGM, ALT_KEY, HOTKEY_P ) 
UI_ShowForm( frmGM, FALSE )
UI_AddFormToTemplete( frmGM, FORM_MAIN )
UI_FormSetIsEscClose( frmGM, FALSE )
UI_SetIsDrag( frmGM, TRUE )
UI_SetFormStyleEx( frmGM, FORM_BOTTOM, 0, 45)

imgMain3 = UI_CreateCompent( frmGM, IMAGE_TYPE, "imgMain3", 378, 61, 0, 0 )
UI_LoadImage( imgMain3, "texture/ui/gm_panel.tga", NORMAL, 378, 61, 0, 0 )

btnClose = UI_CreateCompent( frmGM, BUTTON_TYPE, "btnClose", 14, 14, 361, 3 )
UI_LoadButtonImage( btnClose, "texture/ui/PublicC.tga", 14, 14, 116, 175, TRUE )
UI_SetButtonModalResult( btnClose, BUTTON_CLOSE )

labTitle = UI_CreateCompent( frmGM, LABELEX_TYPE, "labTitle", 283, 16, 10, 3 )
UI_SetCaption( labTitle, "GM Panel")
UI_SetTextColor( labTitle, 4289000470 )
UI_SetLabelExFont( labTitle, DEFAULT_FONT, TRUE, COLOR_BLACK )

edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 335, 13, 21, 31 )
UI_SetTextColor( edtGMSay, 4288060058 )
UI_SetLabelExFont( edtGMSay, DEFAULT_FONT, TRUE, COLOR_BLACK )
UI_SetEditCursorColor( edtGMSay, 4288060058 )
UI_SetEditMaxNum( edtGMSay, 500)
UI_SetEditMaxNumVisible( edtGMSay, 500)
UI_SetEditCursorColor( edtGMSay, 4288060058 )

put this photo inside your client  texture\ui

Edited by mkhzaleh
  • Like 2

Share this post


Link to post
Share on other sites
On 8/6/2018 at 6:54 PM, mkhzaleh said:

go to your client
scripts\lua\forms\main
open it and look for


frmGM = UI_CreateForm( "frmGM", FALSE, 480, 20, 300, 545, TRUE, FALSE )

change the function there to this
 


frmGM = UI_CreateForm( "frmGM", FALSE, 480, 20, 300, 545, TRUE, FALSE )
UI_FormSetHotKey( frmGM, ALT_KEY, HOTKEY_P ) 
UI_ShowForm( frmGM, FALSE )
UI_AddFormToTemplete( frmGM, FORM_MAIN )
UI_FormSetIsEscClose( frmGM, FALSE )
UI_SetIsDrag( frmGM, TRUE )
UI_SetFormStyleEx( frmGM, FORM_BOTTOM, 0, 45)

imgMain3 = UI_CreateCompent( frmGM, IMAGE_TYPE, "imgMain3", 378, 61, 0, 0 )
UI_LoadImage( imgMain3, "texture/ui/gm_panel.tga", NORMAL, 378, 61, 0, 0 )

btnClose = UI_CreateCompent( frmGM, BUTTON_TYPE, "btnClose", 14, 14, 361, 3 )
UI_LoadButtonImage( btnClose, "texture/ui/PublicC.tga", 14, 14, 116, 175, TRUE )
UI_SetButtonModalResult( btnClose, BUTTON_CLOSE )

labTitle = UI_CreateCompent( frmGM, LABELEX_TYPE, "labTitle", 283, 16, 10, 3 )
UI_SetCaption( labTitle, "GM Panel")
UI_SetTextColor( labTitle, 4289000470 )
UI_SetLabelExFont( labTitle, DEFAULT_FONT, TRUE, COLOR_BLACK )

edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 335, 13, 21, 31 )
UI_SetTextColor( edtGMSay, 4288060058 )
UI_SetLabelExFont( edtGMSay, DEFAULT_FONT, TRUE, COLOR_BLACK )
UI_SetEditCursorColor( edtGMSay, 4288060058 )
UI_SetEditMaxNum( edtGMSay, 500)
UI_SetEditMaxNumVisible( edtGMSay, 500)
UI_SetEditCursorColor( edtGMSay, 4288060058 )

put this photo inside your client  texture\ui

What is this for?

never seen something like a GM Panel.
I know alt + p, and &system, but i have no idea what is this about? 

Share this post


Link to post
Share on other sites
6 minutes ago, Brothers said:

What is this for?

never seen something like a GM Panel.
I know alt + p, and &system, but i have no idea what is this about? 

It's client side on GUI, how you want it to appear on screen.


Nissan-GT-R.gif

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...