-
Posts
493 -
Joined
Everything posted by toptional
-
Bit confused bit heres what i got Server: addCommandHandler ( 'afk', function (AFKZone) setElementPosition ( thePlayer, 1958.7082519531, -1517.5471191406, 973.55889892578 ) setElementFrozen ( thePlayer, true ) toggleControl ( thePlayer, "fire", false ) outputChatBox ( "#FF0000You are now in AFK mode do /stopafk to go back and play!", getRootElement(), 255, 255, 255, true ) end ) addCommandHandler ( 'stopafk', function (StopAFK) killPlayer(sourcePlayer, sourcePlayer) setElementFrozen ( thePlayer, false ) toggleControl ( thePlayer, "fire", true ) end )
-
Which advice to follow ? lol ill check the function stuff thanks
-
Getting retarded errors like this ERROR: attempt to call global 'spawnPlayer' (a nil value) and ERROR: attempt to call global 'killPlayer' (a nil value) Script Client : addCommandHandler ( 'afk', function (AFKZone) spawnPlayer ( source, 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0 ) setElementFrozen ( thePlayer, true ) toggleControl ( thePlayer, "fire", false ) outputChatBox ( "#FF0000You are now in AFK mode do /stopafk to go back and play!", getRootElement(), 255, 255, 255, true ) end ) addCommandHandler ( 'stopafk', function (StopAFK) killPlayer(sourcePlayer, sourcePlayer) setElementFrozen ( thePlayer, false ) toggleControl ( thePlayer, "fire", true ) end )
-
Willing to pay? how much?
-
It was on my test server so yeh! Thanks it works
-
Is it possible to get a list of accounts and if i were to makea login system that asked for an email to view them too?
-
For some reason it kills u in 2 seconds not 10 take a look addCommandHandler ( 'kill', function ( p ) setTimer ( killPed, 100000, 1, p ) setElementFrozen ( p, true ) toggleControl ( p, "fire", false ) outputChatBox ( "#FF0000You have been frozen will be killed in 10 seconds", getRootElement(), 255, 255, 255, true ) end ) function unfreeze ( ) setElementFrozen ( source, false ) toggleControl ( source, "fire", true ) end addEventHandler ( "onPlayerSpawn", root, unfreeze )
-
Weird... But im sure there is a way to output information except from using the chatbox? Any Ideas?
-
At the outputChatBox Wiki page it says this "Note: Avoid outputting text to the chatbox that isn't actually chat, as this can be annoying for players. Output information and status messages to the HUD." How would i do it to the HUD? I think its something to do wtih dx But i havent used dx much
-
Hey! This is a script, so when you do /kill it freezes you for 10 seconds and then u die in 10 seconds. It's not working though script addCommandHandler('kill', function(p) setTimer(killPed, 20000, 1, p) setElementFrozen (p, true) toggleControl ( p, "fire", false ) end end) addEventHandler ("onPlayerRespawn", root, unfreeze function unfreeze (p) setElementFrozen (p, false) toggleControl ( p, "fire", true ) end ) Meta incase i failed on that "Robbster" type="script" version="0.1"/> Thanks , I get no Debug errors btw
-
Hey Bro's! I run the server CMG, its good but the bad thing about it is when new players join, they see 40mb download and just leave! Have you got any tips on keeping the download low? Its mainly cuase of the mods but they are just too good.. Is it possible for compressed downloads? Thanks
-
This is a year old guys.. Stop asking for it he clearly dont do it no more
-
Replacing a car bodikit + Replacing rims
toptional replied to DeletedAccount1111's topic in Scripting
btw you didnt END The Function function replace () outputChatBox ( "> replacing the euros vehicle" ) end txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) addEventHandler ( "onClientResourceStart", replace ) -
No lol that isnt illegal
-
Getting spammed with these Errors CMG_Spawners_SF\vehicleShops_C:lua:54: addEventHandler: 'onClientPreRender' with this function is already handled Many errors like these Heres the client Tell me if u need server side Client: planeSF = createMarker( -2282.6, -1682.6, 488, "cylinder", 2, 255, 0, 0, 150) heliSF1 = createMarker( -2348.9, -1669.2, 502, "cylinder", 2, 255, 0, 0, 150) heliSF2 = createMarker( -2367, -1574.7, 505, "cylinder", 2, 255, 0, 0, 150) PlaneWindowSF = guiCreateWindow(0.6, 0.3, 0.3, 0.6, "Spawn a Plane", true) exitBut = guiCreateButton (0.1, 0.85, 0.8, 0.1, "exit", true, PlaneWindowSF) guiWindowSetMovable( PlaneWindowSF, false ) guiWindowSetSizable( PlaneWindowSF, false ) PlaneListSF = guiCreateGridList(0.1, 0.1, 0.8, 0.7, true, PlaneWindowSF) PlaneColSF = guiGridListAddColumn(PlaneListSF, "Name", 0.9) PlaneRowSF1 = guiGridListAddRow ( PlaneListSF ) PlaneRowSF2 = guiGridListAddRow ( PlaneListSF ) guiGridListSetItemText( PlaneListSF, PlaneRowSF1, PlaneColSF, "F22 Raptor", false, false) guiGridListSetItemText( PlaneListSF, PlaneRowSF2, PlaneColSF, "A-10 Warthog", false, false) guiSetVisible(PlaneWindowSF, false) HeliWindowSF = guiCreateWindow(0.6, 0.3, 0.3, 0.6, "Spawn a Helicopter", true) exitBut = guiCreateButton (0.1, 0.85, 0.8, 0.1, "exit", true, HeliWindowSF) guiWindowSetMovable( HeliWindowSF, false ) guiWindowSetSizable( HeliWindowSF, false ) HeliListSF = guiCreateGridList(0.1, 0.1, 0.8, 0.7, true, HeliWindowSF) HeliColSF = guiGridListAddColumn(HeliListSF, "Name", 0.9) HeliRowSF1 = guiGridListAddRow ( HeliListSF ) HeliRowSF2 = guiGridListAddRow ( HeliListSF ) guiGridListSetItemText( HeliListSF, HeliRowSF1, HeliColSF, "Apache", false, false) guiGridListSetItemText( HeliListSF, HeliRowSF2, HeliColSF, "Pavelow", false, false) guiSetVisible(HeliWindowSF, false) function planeGUI() if isElementWithinMarker ( localPlayer, planeSF ) then showCursor (true, true) guiSetVisible(PlaneWindowSF, true) removeEventHandler("onClientPreRender", getRootElement(), planeGUI) addEventHandler( "onClientGUIDoubleClick", PlaneListSF, giveSelectedPlane) addEventHandler( "onClientGUIClick", exitBut, exitGUI) end end addEventHandler ( "onClientPreRender", getRootElement (), planeGUI ) function heliGUI() if isElementWithinMarker ( localPlayer, heliSF1 ) then showCursor (true, true) guiSetVisible(HeliWindowSF, true) removeEventHandler("onClientPreRender", getRootElement(), heliGUI) addEventHandler( "onClientGUIDoubleClick", HeliListSF, giveSelectedHeli) addEventHandler( "onClientGUIClick", exitBut, exitGUI) end end addEventHandler ( "onClientPreRender", getRootElement (), heliGUI ) function resetRender() if isElementWithinMarker ( localPlayer, planeSF ) then else addEventHandler ( "onClientPreRender", getRootElement (), planeGUI ) end if isElementWithinMarker ( localPlayer, heliSF1 ) then else addEventHandler ( "onClientPreRender", getRootElement (), heliGUI ) end end addEventHandler ( "onClientPreRender", getRootElement (), resetRender ) function exitGUI() guiSetVisible(PlaneWindowSF, false) showCursor(false, false) addEventHandler ( "onClientPreRender", getRootElement(), planeGUI ) guiSetVisible(HeliWindowSF, false) showCursor(false, false) addEventHandler ( "onClientPreRender", getRootElement(), heliGUI ) end function giveSelectedPlane() local selectedRow, selectedCol = guiGridListGetSelectedItem(PlaneListSF) if selectedRow == (PlaneRowSF1) then triggerServerEvent ( "createHydraSF", getRootElement ()) guiSetVisible ( PlaneWindowSF, false ) showCursor (false, false) end if selectedRow == (PlaneRowSF2) then triggerServerEvent ( "createRustlerSF", getRootElement ()) guiSetVisible ( PlaneWindowSF, false ) showCursor (false, false) end end function giveSelectedHeli() local selectedRow, selectedCol = guiGridListGetSelectedItem(HeliListSF) if selectedRow == (HeliRowSF1) then triggerServerEvent ( "createApacheSF", getRootElement ()) guiSetVisible ( HeliWindowSF, false ) showCursor (false, false) end if selectedRow == (HeliRowSF2) then triggerServerEvent ( "createPavelowSF", getRootElement ()) guiSetVisible ( HeliWindowSF, false ) showCursor (false, false) end end
-
aahahahahahahah Ciao Hunterix !
-
Amazing Maps! I cant seem to download it though Use Media Fire please!
-
We, Non vengo qua molti volte, Come stati?
-
Its becuase you MUST have a DFF to replace as well otherwise it wont work
-
Its not a HUD its like a GUI cuase its spectating from the admin Panel?
-
MTA team can easily get any user from serial , and yet again , the serial cannot be changed. Is that so? How come my MTA always gets a new serial when I re-install it? U dont get a new seriel mate I know figured out how to change the seriel, but it does take very high Skills about Computing, I dont want to give it a way but im saying there is a way.
-
No, im talking about when you use the admin panel and click spectate, i want to record some gameplay! How do i do that? Not the recording but removing the hud on the admin panel?
-
Nope its not Race its like DM but very different
-
Hey guys! I wanna film some gameplay on my server while spectating players, but i dont want that whole Spectation GUI to show doing /showhud doesnt hide it BTW
