
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Put this in your code and post what it outputs: outputChatBox ( "Type: " .. type ( select[1].r ), root ); outputChatBox ( "Value: " .. tostring ( select[1].r ), root ); And, if debugscript says any errors, please post those too.
-
I've bought servers from Vortex Severs before, and it works pretty good for me, never had any major issues. I've never had a Delux Host server, so I'm not sure how good they are.
-
No, however it does allow users to write modules for the game using C++ I believe. https://wiki.multitheftauto.com/wiki/Modules
-
Try using this (Not Tested) local spammers = { } addEventHandler ( "onPlayerChat", root, function ( ) if ( spammers [ source ] and spammers [ source ] > getTickCount ( ) ) then outputChatBox ( "Poczekaj na następną wiadomość", source, 255, 255, 255 ) cancelEvent ( ) return end spammers [ source ] = getTickCount ( ) + 5000 end )
-
When someone does one of these actions, you need to check if the player is in the console ACL group. Use the following functions: getPlayerAccount isObjectInACLGroup getAccountName aclGetGroup
-
Do you mean keep the corpse of the player in the car? If so, just use createPed and warpPedIntoVehicle.
-
What file(s) does it say doesn't exist?
-
We're not here to be your slaves and do it for you. How about you try to do it and we help you... You'll never learn anything if you never try.
-
Just add the default 'admin' resource. It comes when you install MTA.
-
You never addressed the problem? What is it?
-
Just use: setting = get ( "#settingName" );
-
Make a table of serials, and simply check if the players serial is within the table.
-
You can only change handling on a server you can upload resources to. Use either setVehicleHandling or setModelHandling.
-
very thanks for link, but my question is: is it sql injection possible in using dbQuery? for example: local qh = dbQuery( connection, "SELECT * FROM users WHERE name=?", playerName ) local result = dbPoll( qh, -1 ) if playerName contain a special/harmful word, is sql injection possible here? Using code such as: local qh = dbQuery( connection, "SELECT * FROM users WHERE name=?", playerName ) will prevent SQL injection, but if you wrote it such as: local qh = dbQuery( connection, "SELECT * FROM users WHERE name='"..playerName.."'" ) then it could cause SQL injection. Basically, using the '?' with dbQuery prevents SQL injection.
-
The turfs are created in the 'turfs' table within your database. TThe database it is in NGSQL? Yes, you have to change the script so it connects to your database. Thanks.
-
Use the convertNumber function. https://wiki.multitheftauto.com/wiki/ConvertNumber
-
Make the text always fit in a 100 pixel width space, having the size 1 as maximum and getting smaller if it is too big. I'm not sure how the math wouldbe, but you could use a while loop, something like this: local text = "~HyPeX~ASdasdasd" local size = dxGetTextWidth(text,1,"default") local tSize = 1; if ( size < 100 ) then while ( size < 100 ) do tSize = tSize + 0.5; size = dxGetTextWidth(text,tSize,"default") end elseif ( size > 100 ) then while ( size > 100 ) then tSize = tSize - 0.5; size = dxGetTextWidth(text,tSize,"default") end end outputConsole ( tSize );
-
This isn't a request form. This can be done with the following functions: playSound3D attachElements getElementsByType getElementModel destroyElement
-
The turfs are created in the 'turfs' table within your database.
-
This script saves the color of the vehicle in the SQL table, but when the vehicles are loaded, it never sets the vehicle color. In the makevehs function in vehicles_server.lua you need to set the color of the vehicle. The SQL column name is "Color" and this is what the developer put for the insert: local color = tostring(r1.. "," ..g1.. "," ..b1.. "," ..r2.. "," ..g2.. "," ..b2) . Use the split function with a comma.
-
It's probably a script causing the problem. Try checking through your scripts and check debugscript. If it continues to happen you should be able to use showPlayerHudComponent.
-
You just need to set the player account. Here's the events & functions you'll need to use: onPlayerLogin -- Load onPlayerQuit -- Save onResourceStop -- Save onResourceStart -- Load getPlayerAccount setAccountData getAccountData
-
You can get it from here, but it'll require some edits.