Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/10/23 in all areas

  1. Don't use playername, use serial. And don't pass the player to this function: function unmutePlayer(player, punisherName, ruleNumber, ruleDescription) Pass over it's serial function unmutePlayer(serial, punisherName, ruleNumber, ruleDescription) local player = getPlayerFromSerial ( serial ) -- utility function copy from: https://wiki.multitheftauto.com/wiki/GetPlayerFromSerial if player then -- is the player in the server? -- inform the player that he has been unmuted end
    1 point
  2. You can use a variable and set it to true when someone starts the mission and false when it ends, when someone wants to start that mission they can only do so if the variable is false local isMissionStarted = false addEvent("requestStartMission", true) addEventHandler("requestStartMission", root, function() if not isMissionStarted then startMision() else outputChatBox("Mission not available right now", client, 255, 0, 0) end end ) function startMision() isMissionStarted = true end function stopMision() isMissionStarted = false end
    1 point
×
×
  • Create New...