
Simi23
Members-
Posts
49 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Simi23
-
It didn't load up. I will try to restart it. (I can't unless im not signed in, but I'll rewrite that script and restart the server.) OMG Solved it. Because of I can restart resources without being logged in from now, I could see the real error. IT WAS ONE F.... "=" symbol.... btw. I've wrote = instead of ==
-
Even if I delete the whole script, still got it. Note that, not mta debug outputs that error, im using a lua checker plugin for notepad++. When i launch the resource (the problem is in the server side script) Everything appears to be nice, the login panel shows up, but when I press the login button, (it should trigger a server side event) its just saying that event is not added.(Before commenting out the script) yes, sure
-
Still got the error. Even if I write nothing in the first line.
-
Same error appears. Even if I rewrite the first line.
-
It's already utf-8
-
Hello! I got this problem when I try to check my script: s_account_system.lua:1: unexpected symbol near '´' But when I searched for it, there is no such symbol like " ´ " in my script, and my first row looks like: local mysql = exports.mysql Any help?
-
I think you should use this one and create a lua table or something for the markers, and you can make the markers visible on the map using a loop instead of getElementsByType("marker")
-
addEventHandler("onClientGUIClick",resourceRoot, function() if ( source == removeserial ) then selected = guiGridListGetSelectedItem(GridBan) if selected ~= -1 then data = guiGridListGetItemText(GridBan, selected,1) triggerServerEvent("removeserial",localPlayer,data) guiGridListRemoveRow (GridBan,selected) end end end) This should do it I think.
-
And if I use no binds, how can I use backspace to delete the last character? ~UPDATE~ Found it! I just need to use addEventHandler("onClientKey", getRootElement(), function)
-
I can still use binds, because as i said, its not a gui editbox. I've made it with dx.
-
Hello! There is a command: guiSetInputMode() I need it for an input box, but that box is not mta's gui, it's drawn by dx. So if I want to remove the last character, I need to use a bind for backspace. So I want to disable all the binds except that backspace. Can I do that?
-
Hello! I've made a login panel. After the player logs in, he'll need to select which character he wanna play with. At this point, the player see the selected character in gta world (interior: 0) and a window with his characters. Because if it's interior 0, I want to make only the local player see that character in the world, how is that possible if I can't set the camera's dimension?
-
Please use function called "Code" to insert your script.
-
I can use shaders for only textures, or complete car mods as well?
-
Hello! Is it possible to add vehicle (e.g. car) mods, not replacing them? If it is, can somebody explain me how it working? Thanks!
-
Is your timezone set to what you want?
-
memberUsernames is a table with all the usernames of the members eg {William Johns, Sergej Platnikov, Feliks Anyukov, Frank Williams, etc.} memberRanks is a table, with the ranks of the members eg: {1, 4, 14, 3, 7, 5, etc.} memberOnline is a table, with the statuses of the members eg: {true, false, false, true, true, etc.} (true means online, false means offline) memberLastlogin is a table, with the last logins of the members eg: {today, yesterday, today, 4 days ago, 2 weeks ago, etc.} active can be 0 or 1 as a default, everyone has 0. Another loop sets the first 15 member to active, so the rendering part will know which members must be rendered. If the user scrolls down, the first member who has 1, will be set to 0. The first member who have 0 after a member who have 1, will set to 1. Do I want to use table.insert? When i do the loop, its not really showing the error to every row at once, only for the first. But if i remove the first row, the error will appear at the second, and so on.
-
Hello! I have made closely an entire faction-system, but i have problems with loops. This client side script is for put the faction members and their properties in one table. menuPlayers = {} for i = 1, #memberUsernames do menuPlayers[i].name = memberUsernames[i] menuPlayers[i].rank = memberRanks[i] menuPlayers[i].status = memberOnline[i] menuPlayers[i].lastlogin = memberLastLogin[i] menuPlayers[i].active = 0 end when i do it like this ^^ i got this error for the rows in the loop: attempt to index field '?' (a nil value) But, when i remove the loop and try it for only the first player, it works: menuPlayers = {} menuPlayers[1].name = memberUsernames[1] menuPlayers[1].rank = memberRanks[1] menuPlayers[1].status = memberOnline[1] menuPlayers[1].lastlogin = memberLastLogin[1] menuPlayers[1].active = 0 Any help? Thanks.
-
local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1024), (screenH/768) local size = y*1.50 function drawText() local playerCoins = getElementData(getLocalPlayer(), "moneycoins") if not playerCoins then playerCoins = "0" end dxDrawRectangle(screenW * 0.6972, screenH * 0.0711, screenW * 0.1500, screenH * 0.0256, tocolor(0, 0, 0, 170), false) dxDrawText("Coin:", screenW * 0.7000, screenH * 0.0711, screenW * 0.7431, screenH * 0.0967, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText(playerCoins, screenW * 0.7431, screenH * 0.0711, screenW * 0.8472, screenH * 0.0967, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end addEventHandler("onClientRender", root, drawText) function getPlayerCoin() local data = getElementData(getLocalPlayer(), "moneycoins"); thePoints = tonumber(data); return thePoints end fileDelete("c_client.lua")