Bacchus
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by Bacchus
-
Ok it's working, thank you. But, is there a way to hide (with setGuiAlpha) an edit box but display the characters that have been entered into this edit box? Because when I set the alpha of the edit box to 0, I can't see the characters typed. Thanks,
-
What do you mean by disabled or active?
-
Hello guys, I created an edit box but in fact I can't write anything on it (when I press keys on my keyboard nothing is displayed) button = guiCreateEdit( 0.3823, 0.4383, 0.2146, 0.0611, "", true ) Regards,
-
Hello guys, I'm currently working on a login window made with dxFunctions. However, I would like to know how can I manage to create an edit box with the dX functions. Regards,
-
I think it's not compatible with OS X ... Do you have any other way to play MTA on OS X ?
-
Hello guys, I have decided to install MTA on my Mac using CrossOver. I have succeeded to launch the installation executable but then I am blocked at this moment http://i.imgur.com/zE2iEnZ.png And the progress bar doesn't progress at all! Do you know how can I handle this issue? Thanks, Regards
-
Sorry to double post but in this video : we can see that there is way more clothes than on the original game ...
-
But on SA-MP it's possible to add some, I'm right (just to know)
-
Ok thank you. But you confirm that we can't add new objects like on SA-MP but just replace them?
-
Are you sure we can't add custom objects? Could someone confirm?
-
Ok thanks And also do you know if its possible to add new clothes to those https://wiki.multitheftauto.com/wiki/CJ ... rt_%280%29 or do I have to replace them if I want custom clothes?
-
Hello guys, I have the project to duplicate CJ's model to create a black woman, a white woman and a white man, and a latino man and a latino woman. I would like to know whether it's possible to : - Duplicate CJ's model in order to have 6 different skins but with the CJ's model and so to be able to change their clothes etc - If it's not possible, can we change CJ's face and texture and make it visible for all the players of the server? Thank you Regards
-
Hello guys, Thanks for your answers. In fact I would like to know if its possible to create a system like this : Each player have the CJ skin and I would like to apply different clothes / accessories to all the players. Thereby, a player with CJ skin would have a black shirt but another player with CJ skin would have a red hoodie for instance. Is it possible for all the players to see the difference between all of the different CJ skins ?
-
This is used to import new skin etc but to replace a part of CJ's body it's possible you think?
-
Hey guys, I have watched this video : And I was wondering if it was possible to change the "face" of CJ skin ? Because since 0:11 in the video we can see that the player is changing the face of the character. Regards,
-
Hey, Problem solved. In fact, I put the addEventHandler( "onClientGUIClick") inside the function that creates the window.
-
Hello, I have created a GUI Window and I would like to test the onClientGUIClick event but when I click on the button, nothing happen : Client Side -- Auteur : Bacchus -- Script : Connexion (client ) -- Version : 1.0 -- Constantes local GUIEditor = { button = {}, window = {}, edit = {}, label = {} } -- Création de la fenêtre de connexion function create_connection_windows() GUIEditor.window[1] = guiCreateWindow(0.42, 0.40, 0.18, 0.16, "Connexion au serveur", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.06, 0.14, 0.88, 0.23, "Mot de passe", true, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.edit[1] = guiCreateEdit(0.06, 0.39, 0.89, 0.19, "", true, GUIEditor.window[1]) guiEditSetMasked(GUIEditor.edit[1], true) GUIEditor.button[1] = guiCreateButton(0.06, 0.71, 0.87, 0.25, "Connexion", true, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1], false ) end -- Afficher la fenêtre de connexion function connection_windows() create_connection_windows() guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) guiSetInputEnabled( true ) end addEvent( "onPlayerAttemptToConnect", true ) addEventHandler( "onPlayerAttemptToConnect", localPlayer, connection_windows ) -- Tentative de connexion ... function trying_to_connect( button, state ) outputChatBox( "test", localPlayer ) end addEventHandler( "onClientGUIClick", GUIEditor.button[1], trying_to_connect, false ) Server side -- Auteur : Bacchus -- Script : Authentification -- Version : 1.0 -- Constantes local connection = exports.db:getDatabase() addEventHandler( "onPlayerJoin", getRootElement(), function() local query = dbQuery( connection, "SELECT * FROM account WHERE username = ?", getPlayerName( source ) ) local result, num_affected_rows, last_insert_id = dbPoll( query, -1 ) if num_affected_rows >= 1 then triggerClientEvent( source, "onPlayerAttemptToConnect", source ) else triggerClientEvent( source, "onUnregAccount", source ) end end ) In fact, the window appears, but when I click on "Connexion" button, nothing happens. (It should send a "test" message to the client in fact) Do you know where's the bug? Regards,