-
Posts
4,121 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Kenix
-
https://wiki.multitheftauto.com/wiki/Gui ... rogressBar or https://wiki.multitheftauto.com/wiki/DxDrawRectangle And update it in event onClientRender.
-
You added resource to acl group admin?
-
Just learn https://wiki.multitheftauto.com/wiki/Scr ... troduction viewtopic.php?f=148&t=40809
-
Thx you. I will update.
-
Кстати \n не работает в этой ситуации local sText = [[ Text1 \n Text2 ]] print( sText ) -->Text1 \n Text2 print">print">print( sText ) -->Text1 \n Text2 P.S Опять баги с синтаксисом.
-
Не легче сделать такое? local sText = [[ ... ... ]] ИМХО это лучше и не надо xml'ы юзать.
-
[lua][/lua] highlighting
Kenix replied to Static-X's topic in Site/Forum/Discord/Mantis/Wiki related
tonumber">tonumber pairs">pairs tostring">tostring -
No problem. It's not function, it's event. https://wiki.multitheftauto.com/wiki/OnVehicleStartEnter https://wiki.multitheftauto.com/wiki/OnVehicleEnter
-
It working, i test it now. Also i forgot say problem. You problem in 28 line setTimer( randomSpawn, 3000, 1, source ) You forgot call table. setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) Correct. Full correct code local randomSpawnTable = { { -2818.3391, 1134.4768, 26.1129, 179.2400 }, { 2021.3114, 1344.1099, 10.8203, 269.5800 }, { 2221.3726, 1838.4792, 10.8203, 90.3700 } } function randomSpawn( thePlayer, randomSpawnTable ) local random = math.random( 1, #randomSpawnTable ) spawnPlayer( thePlayer, randomSpawnTable[random][1], randomSpawnTable[random][2], randomSpawnTable[random][3], randomSpawnTable[random][4] ) end function onPlayerJoin( ) fadeCamera( source, true ) setCameraTarget( source, source ) randomSpawn( source, randomSpawnTable ) end addEventHandler( "onPlayerJoin",root, onPlayerJoin ) function onPlayerDeath( ) fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) setTimer( fadeCamera, 2500, 1, source, true, 0.5 ) end addEventHandler( "onPlayerWasted", root, onPlayerDeath )
-
local randomSpawnTable = { { -2818.3391, 1134.4768, 26.1129, 179.2400 }, { 2021.3114, 1344.1099, 10.8203, 269.5800 }, { 2221.3726, 1838.4792, 10.8203, 90.3700 } } function randomSpawn( thePlayer, randomSpawnTable ) local random = math.random( 1, #randomSpawnTable ) spawnPlayer( thePlayer, randomSpawnTable[random][1], randomSpawnTable[random][2], randomSpawnTable[random][3], randomSpawnTable[random][4] ) end function onPlayerJoin( ) fadeCamera( source, true ) setCameraTarget( source, source ) randomSpawn( source, randomSpawnTable ) end addEventHandler( "onPlayerJoin",root, onPlayerJoin ) function onPlayerDeath( ) fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer( randomSpawn, 3000, 1, source,randomSpawnTable ) setTimer( fadeCamera, 2500, 1, source, true, 0.5 ) end addEventHandler( "onPlayerWasted", root, onPlayerDeath )
-
I think you use freeroam resource and in freeroam have custom chat messages. So for disable: Open freeroam->Open file fr_server.lua->find event onPlayerChat->delete event handler ->done.
-
Попробуй toggleControl и отрубай кнопки в цикле.
-
[lua][/lua] highlighting
Kenix replied to Static-X's topic in Site/Forum/Discord/Mantis/Wiki related
[ code ] ipairs [ lua ] ipairs">ipairs [ code=lua ] ipairs">ipairs -
Server side addCommandHandler ( 'brb', function( uPlayer ) outputChatBox( getPlayerName( uPlayer ) .. ' Says Bye Bye to Simon', root, 255, 255, 255 ) end )
-
function setFriendlyFireOn ( ) -- For each team, for index, theTeam in ipairs ( getElementsByType("team") ) do -- if friendly fire is off, if not getTeamFriendlyFire ( theTeam ) then -- switch it on. setTeamFriendlyFire ( theTeam, true ) end end end -- Add console command 'setFF' addCommandHandler ( "setFF", setFriendlyFireOn ) Show meta.xml too. for index, theTeam in ipairs">ipairs ( getElementsByType("team") ) do Forum syntax bug
-
https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/OutputChatBox https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
Ransom Add this, if possible viewtopic.php?f=108&t=41111
-
New version 1.2 Added dialog box with save folder. Fixed most bugs. Download Download Virus total First post updated.
-
It's just create meta.xml and nothing else. I not understand, what you mean.
