Stevenn Posted April 3, 2012 Share Posted April 3, 2012 Topic is quite obvious. local medicPed = createPed (275, 1178, -1327, 14) paramedicGui = guiCreateWindow(704,317,533,326,"Paramedic ",true) paramedicMemo = guiCreateMemo(9,0,1,1,"text",false,paramedicGui) paramedicLabel = guiCreateLabel(7,27,521,25,"Paramedic Job Information",true,paramedicGui) guiLabelSetHorizontalAlign(paramedicLabel,"center",false) guiSetFont(paramedicLabel,"clear-normal") paramedicAccept = guiCreateButton(143,290,107,27,"Accept",true,paramedicGui) paramedicClose = guiCreateButton(292,289,107,28,"Close",true,paramedicGui) --additions guiMemoSetReadOnly(paramedicMemo, true) guiWindowSetSizable(paramedicGui, false) function medicClick ( button, state, absX, absY, wx, wy, wz, element ) if ( element and element == medicPed ) then guiSetVisible ( paramedicGui, true ) end end addEventHandler ( "onClientClick", getRootElement(), medicClick ) bindKey("K","down", function() showCursor(true) end) Link to comment
Castillo Posted April 3, 2012 Share Posted April 3, 2012 local medicPed = createPed ( 275, 1178, -1327, 14 ) paramedicGui = guiCreateWindow(704,317,533,326,"Paramedic ",false) paramedicMemo = guiCreateMemo(9,0,1,1,"text",false,paramedicGui) paramedicLabel = guiCreateLabel(7,27,521,25,"Paramedic Job Information",false,paramedicGui) guiLabelSetHorizontalAlign(paramedicLabel,"center",false) guiSetFont(paramedicLabel,"clear-normal") paramedicAccept = guiCreateButton(143,290,107,27,"Accept",false,paramedicGui) paramedicClose = guiCreateButton(292,289,107,28,"Close",false,paramedicGui) --additions guiSetVisible ( paramedicGui, false ) guiMemoSetReadOnly ( paramedicMemo, true ) guiWindowSetSizable ( paramedicGui, false ) function medicClick ( button, state, absX, absY, wx, wy, wz, element ) if ( element and element == medicPed ) then guiSetVisible ( paramedicGui, true ) end end addEventHandler ( "onClientClick", getRootElement(), medicClick ) bindKey ( "K", "down", function ( ) showCursor ( not isCursorShowing ( ) ) end ) Your GUI elements we're set to Relative, but they we're Relative. true = Relativefalse = Absolute Link to comment
Stevenn Posted April 3, 2012 Author Share Posted April 3, 2012 Oh, lol I feel like an idiot. but, now the memo isn't showing? Link to comment
Castillo Posted April 3, 2012 Share Posted April 3, 2012 Maybe you created it on a wrong position, try re-creating it. Link to comment
Laffu Posted April 5, 2012 Share Posted April 5, 2012 When I and a friend, we were creating a RPG We did a medical system, "setElementFrozen " , This can be useful ,This freezes the pet. 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