
tim260
Members-
Posts
157 -
Joined
-
Last visited
Everything posted by tim260
-
how do i restrict it on team instead of Vehicle -- Simple Police-Lights by MuLTi! p_lights = {} p_timer = {} p_lvar = {} function toggleLights(thePlayer, cmd) local veh = getPedOccupiedVehicle(thePlayer) local id = getElementModel(veh) if (id == 470) then if(p_lights[veh] == 0) or (not p_lights[veh]) then p_lights[veh] = 1 setVehicleOverrideLights ( veh, 2 ) triggerClientEvent ( "startSirene", getRootElement(), veh ) p_timer[veh] = setTimer( function() if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then p_lvar[veh] = 1 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar[veh] = 0 end end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) triggerClientEvent ( "stopSirene", getRootElement(), veh ) end else outputChatBox("You can't use this command!", thePlayer, 255, 0, 0, false) end end addCommandHandler("lights", toggleLights) addEventHandler ( "onVehicleExplode", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler ( "onVehicleRespawn", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler("onElementDestroy", getRootElement(), function () if getElementType(source) == "vehicle" then if(p_lights[source] == 1) then killTimer(p_timer[source]) end end end )
-
ty and you see its copied from the wiki example "-- attach the samsite to the elegy;" haha so it works
-
im trying to output the position in the chatbox so i can copy it easy. function coords() local x, y, z = getElementPosition( player ) -- attach the samsite to the elegy; outputChatBox ( " ".. x .." , ".. y .." , ".. z .." " ) end addCommandHandler ( "coords", coords ) doesnt work ! [2012-02-22 22:47:47] WARNING: [gameplay]\restrictcars\coords.lua:2: Bad argument @ 'getElementPosition' [2012-02-22 22:47:47] ERROR: [gameplay]\restrictcars\coords.lua:4: attempt to concatenate local 'z' (a nil value)
-
Hey huys how much would you ask to edit this for me so ill tell you what i want and then you can tell me how much i would have to pay. https://community.multitheftauto.com/ind ... ls&id=1152 The resource above i want to restrict classes on usernames. 2 option are there. 1 restrict them on acl and the acl has the same name as the spawn class. 2 restrict it one username stored in a sqlite db and adding and removing them from classes with f.e. /add tim260 Sherrif. So if you know what i mean can you guys please tell me how much i would have to pay and wich paying methods i could use.
-
Hey people, i just saw this host its cheap , 30 slots 5 pounds p/m thats 6 euro's. So if you want the best connection low ping and all that shit BUY IT HERE , its just a great host with the best connection !! liitle text from there home page: WARSERVERS.NET IS THE BEST GAME SERVER HOST THERE IS! WITH OUR SUPER FAST SERVERS AND GREAT SUPPORT WE ARE ABLE TO PROVIDE GAME SERVERS AT 100% UPTIME. YOU ALSO GET FREE WEBHOSTING AND MYSQL NO MATER HOW LITTLE YOU SPEND WITH US. NO OTHER GAME SERVER HOST OFFERS WHAT WE OFFER!
-
it does ill send the thing later in a edit function createTheGate25 () myGate25 = createObject ( 968, 2881.6000976563, -682.59997558594, 10.69999980926, 0, 270, 359.74743652344 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate25 ) function openMyGate25() moveObject ( myGate25, 3000, 2881.6000976563, -682.59997558594, 10.69999980926, 0, -90, 0 ) end addCommandHandler("hptoll2c", getRootElement(), openMyGate25) function movingMyGateBack25 () moveObject ( myGate25, 3000, 2881.6000976563, -682.59997558594, 10.69999980926, 0, 90, 0 ) end addCommandHandler("hptoll2", movingMyGateBack25) someone know the solution ?
-
it does ill send the thing later in a edit function createTheGate25 () myGate25 = createObject ( 968, 2881.6000976563, -682.59997558594, 10.69999980926, 0, 270, 359.74743652344 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate25 ) function openMyGate25() moveObject ( myGate25, 3000, 2881.6000976563, -682.59997558594, 10.69999980926, 0, -90, 0 ) end addCommandHandler("hptoll2c", getRootElement(), openMyGate25) function movingMyGateBack25 () moveObject ( myGate25, 3000, 2881.6000976563, -682.59997558594, 10.69999980926, 0, 90, 0 ) end addCommandHandler("hptoll2", movingMyGateBack25)
-
local gui = {} gui._placeHolders = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 842, 498 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "United States Customs & Border Protection", false) guiWindowSetSizable(gui["_root"], false) guiSetVisible(gui["_root"], false) gui["tabWidget"] = guiCreateTabPanel(0, 75, 821, 431, false, gui["_root"]) gui["tab"] = guiCreateTab("Red County", gui["tabWidget"]) gui["test"] = guiCreateButton( 10, 10, 401, 361, "Output!", false, gui["tab"] ) gui["label_2"] = guiCreateLabel(460, 90, 271, 221, "", false, gui["tab"]) guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") gui["tab_3"] = guiCreateTab("Montomery Intersection", gui["tabWidget"]) gui["plainTextEdit"] = guiCreateMemo(10, 10, 401, 361, "Toll 1 open close : mitoll1(c) \n\nToll2 open close : mitoll2(c) \n\nAll open close : miall(c) \n\n**(c) if theres a c behind command its for close**\n\n**Commands are not to abuse abuse = kick**", false, gui["tab_3"]) guiMemoSetReadOnly(gui["plainTextEdit"], true) gui._placeHolders["line"] = {left = 27, top = 180, width = 751, height = 20, parent = gui["tab_3"]} gui["tab_2"] = guiCreateTab("Members", gui["tabWidget"]) gui["label"] = guiCreateLabel(290, 25, 411, 31, "", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") function OpenClose() if guiGetVisible(gui["_root"]) == true then guiSetVisible(gui["_root"], false) showCursor(false) elseif guiGetVisible(gui["_root"]) == false then guiSetVisible(gui["_root"], true) showCursor(true) end end addCommandHandler ( "toll", OpenClose ) function outputEditBox () executeCommandHandler ( "hptoll2c" ) end addEventHandler ( "onClientGUIClick", gui["test"] ) why doesnt the button "test" work
-
cant get it to work will post things that i did tommorow
-
lol IM trying to open my gates with a gui panel for people in one of my acl groups ( didnt add the getaclgroup yet either ) So people dont have to do commands all the time for openings gates. SO if people click open Sf main 1 it opens one of the gates
-
warning : "" expected near "end" EDIT: fixed that one still doesnt work EDIT 2 : maybe thw all knowing GURU castillo knows how to fix it waiting for his reply
-
Agree with him ( btw myonlake was in your server its nice epic job )
-
tim260:You need read it https://wiki.multitheftauto.com/wiki/Scr ... troduction ok i did : function on_pushButton_4_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then triggerServerEvent ( "onopenmain", getLocalPlayer(), "Hello World!" ) end --TODO: Implement your button click handler here end and function movingMyGateBack18 () moveObject ( myGate18, 10000, -2680.9365234375, 1243.482421875 + 0, 70.903121948242, 0, 0, 0 ) end addEvent( "onopenmain", true ) addEventHandler( "onopenmain", getRootElement(), movingMyGateBack18 ) addCommandHandler("opensfmain1",movingMyGateBack18) doesnt work what do i do wrong
-
dont you see i did i tryed pff ill wait for solid snake instead of other people flaming me -.- i tried 100 things look at the first button youll see i tried EDIT you think im stupid i use this forums alot i never reqeust things -.-
-
tim260:You need read it https://wiki.multitheftauto.com/wiki/Scr ... troduction i did -.- i just dont understand it if someone would send me an example script ( using my functions ) then i maybe would
-
then to i dont understand im waiting for some experienced guy to reply
-
how do i let the buttons excecute the commands ( open the toll gates ) so if i press open main gate f.e. i want to excecute the command below function movingMyGateBack18 () moveObject ( myGate18, 10000, -2680.9365234375, 1243.482421875 + 0, 70.903121948242, 0, 0, 0 ) end addCommandHandler("opensfmain1",movingMyGateBack18) The GUI GUI made with Qt ! function createTheGate10 () myGate10 = createObject ( 968, -2671.4345703125, 1283.3880615234, 55.4296875, 0, 90, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate10 ) function createTheGate11 () myGate11 = createObject ( 968, -2681.1748046875, 1283.0634765625, 55.4296875, 0, 90, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate11 ) function openMyGate11 () moveObject ( myGate11, 3000, -2681.1748046875, 1283.0634765625, 55.4296875, 0, -90, 0 ) end addCommandHandler("toll2",openMyGate11) function movingMyGateBack11 () moveObject ( myGate11, 3000, -2681.1748046875, 1283.0634765625 + 0, 55.4296875, 0, 90, 0 ) end addCommandHandler("toll2c",movingMyGateBack11) function createTheGate12 () myGate12 = createObject ( 968, -2682.111328125, 1265.599609375, 55.4296875, 0, 270, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate12 ) function openMyGate12 () moveObject ( myGate12, 3000, -2682.111328125, 1265.599609375, 55.4296875, 0, 90, 0 ) end addCommandHandler("toll3",openMyGate12) function movingMyGateBack12 () moveObject ( myGate12, 3000, -2682.111328125, 1265.599609375 + 0, 55.4296875, 0, -90, 0 ) end addCommandHandler("toll3c",movingMyGateBack12) function createTheGate13 () myGate13 = createObject ( 968, -2690.875, 1265.8466796875, 55.4296875, 0, 270, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate13 ) function createTheGate14 () myGate14 = createObject ( 981, -2677.828125, 1232.9757080078, 50.118979644775, 0, 0, 17.864868164063 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate14 ) function openMyGate14 () moveObject ( myGate14, 6000, -2677.828125, 1232.9757080078, 54.918979644775, 0, 0, 0 ) end addEvent( "roadclose1", true ) addCommandHandler("roadclose1",openMyGate14) function movingMyGateBack14 () moveObject ( myGate14,6000, -2677.828125, 1232.9757080078 + 0, 50.118979644775, 0, 0, 0 ) end addCommandHandler("roadopen1",movingMyGateBack14) function createTheGate18 () myGate18 = createObject ( 10838, -2680.9365234375, 1243.482421875, 70.903121948242, 0, 0, 278.61560058594 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate18 ) function openMyGate18 () moveObject ( myGate18, 10000, -2680.9365234375, 1243.482421875, 61.903121948242, 0, 0, 0 ) end addCommandHandler("closesfmain1",openMyGate18) function movingMyGateBack18 () moveObject ( myGate18, 10000, -2680.9365234375, 1243.482421875 + 0, 70.903121948242, 0, 0, 0 ) end addCommandHandler("opensfmain1",movingMyGateBack18) function createTheGate19 () myGate19 = createObject ( 10838, -2680.9716796875, 2137.595703125, 70.66584777832, 0, 0, 93.290405273438 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate19 ) function openMyGate19 () moveObject ( myGate19, 100000, -2680.9716796875, 2137.595703125, 61.66584777832, 0, 0, 0 ) end addCommandHandler("roadclose4",openMyGate19) function movingMyGateBack19 () moveObject ( myGate19, 100000, -2680.9716796875, 2137.595703125 + 0, 70.66584777832, 0, 0, 0 ) end addCommandHandler("roadopen4",movingMyGateBack19) function bridgeclose () end addCommandHandler("bridgeclose", openMyGate14 ) addCommandHandler("bridgeclose", openMyGate18 ) addCommandHandler("bridgeclose", openMyGate19 ) function bridgeopen () end addCommandHandler("bridgeopen", movingMyGateBack14 ) addCommandHandler("bridgeopen", movingMyGateBack18 ) addCommandHandler("bridgeopen", movingMyGateBack19 ) function tollall () end addCommandHandler("tollall", openMyGate11 ) addCommandHandler("tollall", openMyGate12 ) function tollall () end addCommandHandler("tollallc", movingMyGateBack11 ) addCommandHandler("tollallc", movingMyGateBack12 ) -- start GUI local gui = {} gui._placeHolders = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 1219, 564 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "United States Department of Homeland Security - Toll gates Control", false) guiSetVisible(gui["_root"], false) guiWindowSetSizable(gui["_root"], false) gui["tabWidget"] = guiCreateTabPanel(10, 25, 1071, 521, false, gui["_root"]) gui["tab"] = guiCreateTab("San Fierro", gui["tabWidget"]) gui["pushButton_2"] = guiCreateButton(20, 110, 111, 41, "Close Main SF One", false, gui["tab"]) gui["pushButton_3"] = guiCreateButton(260, 60, 111, 41, "Open Toll 2", false, gui["tab"]) gui["pushButton_4"] = guiCreateButton(20, 60, 111, 41, "Open Main SF One", false, gui["tab"]) gui["pushButton_5"] = guiCreateButton(140, 60, 111, 41, "Open Toll 1", false, gui["tab"]) gui["pushButton_6"] = guiCreateButton(140, 110, 111, 41, "Close Toll 1", false, gui["tab"]) gui["pushButton_7"] = guiCreateButton(260, 110, 111, 41, "Close Toll 2", false, gui["tab"]) gui["plainTextEdit"] = guiCreateMemo(20, 160, 421, 151, "When There ar no Homeland Agents Online,\nPlease open all the gates and let everybody true.\n\nSigned,\n\nHomeland Security Leader Tim260.", false, gui["tab"]) guiMemoSetReadOnly(gui["plainTextEdit"], true) gui["commandLinkButton"] = guiCreateButton(30, 320, 401, 41, "Close All Gates ( EMERGENCY )", false, gui["tab"]) gui["commandLinkButton_2"] = guiCreateButton(30, 370, 401, 41, "Open All Gates", false, gui["tab"]) gui["tab_2"] = guiCreateTab("Graver Bridge", gui["tabWidget"]) gui["tab_3"] = guiCreateTab("Martin Bridge", gui["tabWidget"]) gui["tab_4"] = guiCreateTab("Fallow Bridge", gui["tabWidget"]) gui["tab_5"] = guiCreateTab("Montgomery intersection", gui["tabWidget"]) gui["tab_6"] = guiCreateTab("Flint Intersection", gui["tabWidget"]) gui["tab_7"] = guiCreateTab("Toll Information Page", gui["tabWidget"]) function OpenClose() if guiGetVisible(gui["_root"]) == true then guiSetVisible(gui["_root"], false) showCursor(false) elseif guiGetVisible(gui["_root"]) == false then guiSetVisible(gui["_root"], true) showCursor(true) end end addCommandHandler ( "dhstoll", OpenClose ) --return gui, windowWidth, windowHeight --end function on_pushButton_2_clicked(button, state, absoluteX, absoluteY) if button == "left" and state == "up" then triggerClientEvent ( "onroadclose1" ) end --TODO: Implement your button click handler here end function on_pushButton_3_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_4_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_5_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_6_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_7_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here
-
What is wrong with this it doesnt create it and doesnt close ( im not so good in GUI ) function build_Form() local gui = {} gui._placeHolders = {} local dicht = guiSetVisible ( build_Form, false ) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 842, 498 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 showCursor(true) gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Form", false) guiWindowSetSizable(gui["_root"], false) gui["tabWidget"] = guiCreateTabPanel(0, 75, 821, 431, false, gui["_root"]) gui["tab"] = guiCreateTab("United States Department of Homeland Security ", gui["tabWidget"]) gui["plainTextEdit"] = guiCreateMemo(10, 10, 401, 361, "The Department of homeland security was founded in this server by tim260.\n\nIts now lead by tim260 and is not active yet we are devloping it.", false, gui["tab"]) guiMemoSetReadOnly(gui["plainTextEdit"], true) gui["label_2"] = guiCreateLabel(460, 90, 271, 221, "", false, gui["tab"]) guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") gui["tab_3"] = guiCreateTab("Joining", gui["tabWidget"]) gui._placeHolders["line"] = {left = 27, top = 180, width = 751, height = 20, parent = gui["tab_3"]} gui["tab_2"] = guiCreateTab("Members", gui["tabWidget"]) gui["label"] = guiCreateLabel(290, 25, 411, 31, "Homeland security info panel", false, gui["_root"]) guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") return gui, windowWidth, windowHeight end end addCommandHandler ( "homeland", build_Form ) function close() guiSetVisible(build_Form, false) showCursor(false) end end addCommandHandler ( "closehomeland", close )
-
If i could pay you how many would it cost? Edit: and yes like team => character
-
I know already dont ask for scripts without setting or making an example etc. im using this forums alot but this time i really dont get it done and dont know how to add. Its about this resource : https://community.multitheftauto.com/index.php?p= ... ls&id=2685 Castillo already edited it for me to this : http://www.mediafire.com/?kow39nywjdi8c90 But, im trying to get a second thing, dividing the GUI wich shows now in 2 parts like the first selection is: Government Gangs Squads Civilian etc... FE when you press Government youll get all my government teams, when you press squad youll get all squad teams ( wich i defined ) I dont know how to use gui at all if someone is willing to help please tell me cuz i dont get this thing into my head. Sorry for asking without posting example ( i did try it anyways ) Signed, Tim
-
= expected near setcar on line 12 edit : [2012-01-07 16:00:42] SCRIPT ERROR: [gameplay]\setownercar\zabe.lua:12: '=' expected near 'settcar' [2012-01-07 16:00:42] WARNING: Loading script failed: [gameplay]\setownercar\zabe.lua:12: '=' expected near 'settcar'
-
please find whats wrong function check ( player, seat, jacked ) if getElementData(source, "private") then if getElementData(source, "owner") == getAccountName(getPlayerAccount(player)) then else cancelEvent() outputChatBox("This is not your car!", player) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), check ) funtion settcar(player, cmd, who) local who = getPlayerFromName(who) local co = getPedOccupiedVehicle(who) setElementData(co, "private", true) setElementData(co, "owner", getPlayerName(who)) outputChatBox("Now this car owner is "..getPlayerName(who), player) end addCommandHandler("setowner", settcar)