-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Yes, you can go to the server log file.
-
You forgot to fill the text argument: editUser = guiCreateEdit (175, 125, 150, 25, "", false, mainWin) editPass = guiCreateEdit (175, 175, 150, 25, "", false, mainWin) loginBtn = guiCreateButton (175, 200, 150, 50, "Login", false, mainWin) regBtn = guiCreateButton (175, 225, 150, 50, "Register", false, mainWin) guestBtn = guiCreateButton (175, 250, 150, 50, "Guest", false, mainWin)
-
function loginas() local sWidth, sHeight = guiGetScreenSize() local width, height = 400, 400 local x = (sWidth/2) - (width/2) local y = (sHeight/2) - (height/2) mainWin = guiCreateWindow (x,y, width, height, "Hello, Please Log-In", false) guiWindowSetMovable(mainWin, false) guiWindowSetSizable(mainWin, false) user_Label = guiCreateLabel (175, 100, 100, 50, "Username:", false, mainWin) pass_Label = guiCreateLabel (175, 150, 100, 50, "Password:", false, mainWin) guiEditSetMasked(pass_Label, true) editUser = guiCreateEdit (175, 125, 150, 25, false, mainWin) editPass = guiCreateEdit (175, 175, 150, 25, false, mainWin) loginBtn = guiCreateButton (175, 200, 150, 50, false, mainWin) regBtn = guiCreateButton (175, 225, 150, 50, false, mainWin) guestBtn = guiCreateButton (175, 250, 150, 50, false, mainWin) showCursor(true) guiSetInputEnabled(mainWin, true) end addEventHandler ( "onClientResourceStart", resourceRoot, loginas ) addEventHandler("onClientGUIClick",getRootElement(), function() local user = guiGetText(editUser) local pass = guiGetText(editPass) if source == guestBtn then guiSetVisible(mainWin, false) showCursor(false) guiSetInputEnabled(false) elseif source == loginBtn then triggerServerEvent("login", getLocalPlayer(), user, pass) elseif source == regBtn then triggerServerEvent("inUse", getLocalPlayer(), user, pass) end end ) addEvent("setcol",true) addEventHandler("setcol",getRootElement(), function() guiSetVisible(mainWin,false) showCursor(false) guiSetInputEnabled(false) end ) The problem was that you never executed "loginas" function, and in the guiSetVisible you put the function instead of the GUI-window.
-
What is an "Andromeda script"?
-
Nice one, would be nice if someone would make a STALKER-style game mode.
-
Proba con destroyElement para el TXD y engineRestoreModel para el DFF.
-
I found other kind of bugs while using the moving elements part, it some times got bugged and didn't finish animation and so on. For this kind of animation, I recommend making it by yourself, is not hard.
-
https://wiki.multitheftauto.com/wiki/Blip There are all the attributes you can use, there's no distance attribute though.
-
If you take the money client side, it won't sync with the server, so you really didn't take anything, do it server side instead.
-
He's using my gang system, which means he's not using teams as "groups". function getPlayerGang(player) local team = getPlayerTeam(player); return getTeamName(team); end Should be: function getPlayerGang ( player ) return getElementData ( player, "gang" ) end
-
What do you mean by "custom GTA:SA map"?
-
I don't really know how would people help you with this, only thing you can do is try to talk with them. Topic locked.
-
So, you just downloaded a vehicle mod and made a video of it? nothing unique on that.
-
You must loop the table to add each row. local weapons = { ["Samer"]=true, ["Woods"]=true, ["Thing"]=true, ["Robbster"]=true } GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Grid = {} heroesWindow = guiCreateWindow(207,81,372,449,"Heroes List:",false) guiSetVisible(heroesWindow, false) GUIEditor_Label[1] = guiCreateLabel(2,21,5,15,"",false,heroesWindow) GUIEditor_Label[2] = guiCreateLabel(13,33,197,26,"This is our current Heroes List",false,heroesWindow) heroesGrid = guiCreateGridList(15,57,343,379,false,heroesWindow) guiGridListSetSelectionMode(heroesGrid,2) local heroesColumn = guiGridListAddColumn(heroesGrid,"Heroes",2) for member, _ in pairs ( weapons ) do local row = guiGridListAddRow(heroesGrid) guiGridListSetItemText(heroesGrid,row,heroesColumn,tostring(member),false,false) end addCommandHandler ("heroes",function() if not guiGetVisible(heroesWindow) then guiSetVisible(heroesWindow, true) showCursor(true) end end)
-
He wants to have that '10' as a number and the rest as a string, but such thing is not possible.
-
Yes, you must use: guiSetAlpha on it's main element where every other element is child of it.
-
What you are saying doesn't really make much sense. Your code will only set the label text to that string, won't set the number apart. Maybe you should use element data instead, or a table.
-
DirectX fonts: "default": Tahoma "default-bold": Tahoma Bold "clear": Verdana "arial": Arial "sans": Microsoft Sans Serif "pricedown": Pricedown (GTA's theme text) "bankgothic": Bank Gothic Medium "diploma": Diploma Regular "beckett": Beckett Regular GUI label fonts: https://wiki.multitheftauto.com/wiki/Sta ... Font_Names About the other questions: 1: https://community.multitheftauto.com/ind ... ils&id=298 2: You must remove the map file from "play" resource. 3: You'll need to edit the "freeroam" script in order to do that. To replace vehicles/skins/weapons you must use the engine functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
That's because you are only setting the account data, not the element data which is what shows up in the scoreboard.
-
But it works on boats, which is what he wants.
-
Talvez no le entendiste, porque lo que el queria es que cuando un jugador le dispara a otro, le quite el arma al que disparo.