Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/03/23 in all areas

  1. Hello, This is a gamemode I made quite a while ago. The gamemode is heavily inspired by GMOD's cinema servers. I am releasing it as open source as it probably needs a little bit more polishing and I don't code in MTA anymore, therefore the community could improve on it if they find interest in it. To use the gamemode you must create a youtube v3 api and put the API key in Cinema\modules\services\server_youtube.lua file. Gamemode: https://github.com/Ali-Ysf/Cinema Notes: The gamemode is made for an "easy" integration inside another gamemode/server. A roleplay server for example. E - interactions. Q - video queue/request video Tab - scoreboard Video: Edit: I have noticed that the standby image still has the server's name where the cinema was deployed. You can find the stand by psd file in Cinema\data\images so feel free to change it to whatever you want
    3 points
  2. Hey everyone, thought I'd share something I created last week on the forums too as it received a pretty good response on the Discord. I like to think outside of the box and try to bring small interactive but fun experiences to MTA as you would experience in the real world and this is somewhat a small collab of me doing just that. Featuring: Punchbag Machine Bumper Cars + RC Car Race Track I hope that you guys like it as much as I had fun making it, and if anybody has any further ideas then you are welcome to let me know below or send me a PM. - TM
    1 point
  3. addEventHandler('onPlayerChat', root, function(msg, type) -- blank message patch local firstCharacter = string.sub(msg, 1, 1) if ( string.byte(firstCharacter) == 32 ) then outputChatBox( "Invalid text input." ) return end if type == 0 then cancelEvent() if not hasObjectPermissionTo(source, "command.kick") and not hasObjectPermissionTo(source, "command.mute") then if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("Stop spamming main chat!", source, 255, 0, 0) return else chatTime[source] = getTickCount() end if get("*chat/blockRepeatMessages") == "true" and lastChatMessage[source] and lastChatMessage[source] == msg then outputChatBox("Stop repeating yourself!", source, 255, 0, 0) return else lastChatMessage[source] = msg end end if isElement(source) then local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. ': #FFFFFF' .. stripHex(msg), root, r, g, b, true) outputServerLog( "CHAT: " .. getPlayerName(source) .. ": " .. msg ) end end end )
    1 point
  4. try this code if ( msg:gsub(" ", "") == "" ) then outputChatBox( "Invalid text input." ) return end
    1 point
  5. 1 point
×
×
  • Create New...