pa3ck
Members-
Posts
1,141 -
Joined
-
Last visited
-
Days Won
7
Everything posted by pa3ck
-
Because you will need to specify which markers should the player hit eg: -- Client addEventHandler("onClientMarkerHit", myMarker, myFunction ) OR --Server addEventHandler("onMarkerHit", myMarker, myFunction ) Also, you either make the markers and event server side then trigger a client event to open up your GUI or make everything client side and trigger a server event for setting the player team and giving the player weapon. EDIT: Ops, didn't see Solid's post, sorry.
-
guiMemoSetReadOnly Are you using SQL / MySQL or account data to save things?
-
Well, it's still there: What do you mean by that ? i explain that local host isn't mean MySql server to be same with Mta server Host That MySQL can be and on other Host That only SQL need to be in Same Host of Mta Server as it's a file No, you are wrong and he is right. Localhost means you are hosting it locally, so it is running on the same machine. You can of course change localhost with the other machines IP, but if you leave it as localhost or 127.0.0.1, then it should be running on the same machine.
-
Are you sure your interior is set to 17 and dimension to 0?
-
You can't just start and stop a resource for one player only. If you start a resource, it will be loaded for every single player on your server same thing applies for stopping and restarting it, keep that in mind.
-
Instead of saying that, you could perhaps say why not..? If you can't center a window with the correct code I gave you, try this: https://wiki.multitheftauto.com/wiki/CenterWindow Copy - paste the whole code from the link I gave you and use it like so: myWindow = guiCreateWindow ( parameters ) centerWindow ( myWindow ) -- Make sure function centerWindow is in your script
-
I understand that, but if you want to toggle a custom radar, you will need to edit that.
-
You will need to modify your hud resource. If you want us to help you in that, you should post the script(s).
-
They aren't. They are using other function(s).
-
Yes, as Twerky said you'll need to post the errors. Also, I took a look at your code and I saw you have guiGridListSetItemColor ( GridListTOP, aRow,rank, 0-0-255 ) but it should be guiGridListSetItemColor ( GridListTOP, aRow,rank, 0, 0, 255) If you change them, it might solve the problem, try it, if it still won't work, use /debugscript 3 and post the error(s).
-
local sx, sy = guiGetScreenSize ( ) local sizeX, sizeY = 620, 550 -- define your size here local pX, pY = ( sx / 2 - sizeX / 2 ), ( sy / 2 - sizeY / 2 ) -- first half of your code was correct, so why did you divide 'sy' by 1? should be 2 like the 'sx' local button = guiCreateButton(pX, pY,sizeX,sizeY,"",false); Note: It is not going to be the same size for every resolution, its just gonna be at the some position. If you want it to be the same size, you should use 'relative' values instead of 'absolute'.
-
What about the server side? Could you attach it to your post as well?
-
Because you need to get the velocity of the vehicle you are in.
-
Because 'test' is nil, you never defined it. How would the server know whom to check? -- I mean in the first code @xXxMADExXx you had a typo @ 'onVehicleStartEnter' nvehicle = createVehicle( 411, -1319.6854248047, -500.11340332031, 14.1484375 ) setVehicleDamageProof( nvehicle, true ) setVehicleLocked( nvehicle, true ) function check(enteringPlayer, seat ) -- always look for these parameters @ wiki, they're quite well explained. if getPlayerName( enteringPlayer ) == "Whatever name you want" then -- name of the player who can actually enter the car setVehicleLocked( nvehicle, false ) else cancelEvent () -- cancel the 'onVehicleStartEnter' event end end addEventHandler("onVehicleStartEnter", getRootElement(), check)
-
He is using vG, this makes no sense.
-
Well, you can create an exported function with a triggerServerEvent. Like: --client function sendMessageToAdmins ( message ) local send = triggerServerEvent( "onClientMessageSend", root, message ) if send then return true end return false end --server addEvent ( "onClientMessageSend", true ) addEventHandler("onClientMessageSend", root, function ( message ) local players = exports.pool:getPoolElementsByType("player") for k, thePlayer in ipairs(players) do if (exports.global:isPlayerAdmin(thePlayer)) then outputChatBox(tostring(message), thePlayer, 255, 0, 0) end end end That's how I would do it.
-
1 sec = 1000 milliseconds.
-
I think he wants to break the loop as soon as it finds a result, if so, just use 'break'
-
You don't need a for loop, try this: if not myTable [ toPlayer ] then --Send the PM else --Tell him he is blocked or something. end
-
You need to specify the position in the table you want to remove for table.remove . Just do myTable [ toPlayer ] = nil or you can remove it with a for loop: for k, players in ipairs(myTable) do if players == toPlayer then -- I don't know how are you saving it in the table, name or the element table.remove(myTable, k) break end end
-
Are you using MySQL or account data to store the datas? You can store the blocked people using their db id ( SQL ) or their serial, then all you need to is to check the serial / db id and let them send the PM if they are not blocked.
-
000webhost is fine, just change 'localhost' to it's IP address. 'localhost' means you are running MySQL on the same computer, but you are obviously not.
-
If you mean using custom .IFP then no, it's not possible.