
csiguusz
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by csiguusz
-
You can replace an object what you dont often use with the gasmask model then attach it to the player's head.
-
I didn't understand your problem really...Try this maybe: addEvent( "onTravelScreenStart", true ) addEventHandler ( "onTravelScreenStart", root, function () addEventHandler ( "onClientPreRender", root, drawBackround ) end)
-
I don't think it's a problem, he just defines a variable in the first line and then raises it with 1 on thee fourth. @JoZeFSvK: If you want to move the camera continuously, then use your load() function with "onClientPreRender" event.
-
Yeah, I also know it so. But lastTick is a tick count in the past, and getTickCount() will return the current tick count wich will be bigger than lastTick I think. If I'm right then "if ( lastTick - getTickCount() < 500 ) then" doesn't have much sense.
-
getTickCount() will always be a bigger number than lastTick, won't it? So it will be always smaller than 500.
-
Use "WantedLv" for set element data instead of "Wanted". setElementData ( source, "WantedLv", zero )
-
You are welcome.
-
triggerServerEvent("del", root, duser) Use localPlayer instead of root: triggerServerEvent("del", localPlayer, duser)
-
Hi. I just want to report some bugs. At the installation it could not find mta directory automatically so I set it manually, but it can't start client or server and even the resurce browser on the left is empty. Error when I try to start server or client from the editor: Those aren't big problems for me, but what very annoying is, that when I copy-paste some text, it loses syntax higlighting and the text will become gray.
-
Maybe source is not a valid player element?
-
Set forceHideTeam to "true" in the meta.xml.
-
You can disable showing teams.
-
With team functions a with a little scripting you can make it too.
-
There are also similar functions, you can create and edit "teams" with them. createTeam
-
It can be also your router I think. I had a Tilgin router before ( it was a piece of sh*t ), it was slow, the UI was ugly and even if I opened ports ( it said that they are open ), they weren't actually open. Now with a new ZTE router I can open ports whitout any problem.
-
Try this. Client: GUIEditor = { edit = {}, button = {}, label = {}, window = {}, } function window () if not GUIEditor.window[1] then GUIEditor.window[1] = guiCreateWindow(417, 315, 482, 107, "Execute command handler", false) guiSetInputEnabled ( true ) showCursor ( true ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[2] = guiCreateButton(407, 47, 60, 22, "Client", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(407, 75, 60, 22, "Server", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(10, 26, 329, 18, "Type your command here :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") GUIEditor.label[2] = guiCreateLabel(3, 22, 259, 25, "", false, GUIEditor.label[1]) GUIEditor.label[3] = guiCreateLabel(190, 26, 299, 19, "For advanced users only.", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.edit[1] = guiCreateEdit(37, 54, 360, 31, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(8, 60, 37, 25, "CMD:", false, GUIEditor.window[1]) addEventHandler ( "onClientGUIClick", GUIEditor.window[1], function () local text = guiGetText ( GUIEditor.edit[1] ) if source == GUIEditor.button[2] and text ~= "" then local func = loadstring ( "return " .. text )() if isElement ( func ) then return_ = " Element [" .. getElementType ( func) .. "]" outputChatBox ( "Command executed! Result: " .. return_ , 10, 60, 255) else outputChatBox ( "Command executed! Result: " .. tostring ( func ) , 10, 60, 255) end elseif source == GUIEditor.button[3] and text ~= "" then triggerServerEvent ( "runCommand", localPlayer , text ) end end ) return elseif guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) guiSetInputEnabled ( false ) return end guiSetInputEnabled ( true ) showCursor ( true ) guiSetVisible(GUIEditor.window[1], true) end if getPlayerSerial() == "MY SERIAl" then bindKey("F2", "down", function() window () end) end Server: addEvent ( "runCommand", true ) addEventHandler ( "runCommand", root, function ( cmd ) local func = loadstring ( "return " .. cmd ) () if isElement ( func ) then return_ = " Element [" .. getElementType ( func ) .. "]" outputChatBox ( "Command executed! Result: " .. return_ , source, 10, 60, 255) else outputChatBox ( "Command executed! Result: " .. tostring ( func ) , source, 10, 60, 255) end end )
-
Send back the returned value to the client/server with an another triggerClient/ServerEvent.
-
Wow, thank you for the new release! Downloaded and installed it, it's working well so far.
-
Do this: setElementData( somePlayer, "Arrests", "what you type will be showed in the Arrests column next to the given player's name" )
-
Trigger the event only to the wasted player not to all. triggerClientEvent ( source, "onWasonEvent", root, "text" )
-
Then some more code is needed to delete the unused values of the table, so there would not be less code just easier code! Hehe... okay don't take this serious, that was just my first thought when I read your post Good night, thanks for the discussion.
-
Happy birthday Solidsnake!
-
He wanted to know how to remove them, so I found out how could he do it. Yes it sounds easier. My only problem with it is: the table would grow just bigger and bigger without removing unused values. But I don't think this really matters.