If you want a advertisement script heres one i whipped up like 4-5 hours ago
server.lua
---------------------------------
-- Created By Toni Morton --
-- Please, Leave these credits --
---------------------------------
RegisterServerEvent("SyncTrafficAlert")
AddEventHandler('SyncTrafficAlert', function(inputText)
TriggerClientEvent('DisplayTrafficAlert', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad traffic" then
CancelEvent()
TriggerClientEvent("TrafficAlert", from)
end
end)
RegisterServerEvent("SyncAmmuAd")
AddEventHandler('SyncAmmuAd', function(inputText)
TriggerClientEvent('DisplayAmmuAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad ammunation" then
CancelEvent()
TriggerClientEvent("AmmuAd", from)
end
end)
RegisterServerEvent("SyncFleecaAd")
AddEventHandler('SyncFleecaAd', function(inputText)
TriggerClientEvent('DisplayFleecaAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad fleeca" then
CancelEvent()
TriggerClientEvent("FleecaAd", from)
end
end)
RegisterServerEvent("SyncMBankAd")
AddEventHandler('SyncMBankAd', function(inputText)
TriggerClientEvent('DisplayMBankAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad mazebank" then
CancelEvent()
TriggerClientEvent("MBankAd", from)
end
end)
RegisterServerEvent("SyncLMotorsAd")
AddEventHandler('SyncLMotorsAd', function(inputText)
TriggerClientEvent('DisplayLMotorsAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad lmotors" then
CancelEvent()
TriggerClientEvent("LMotorsAd", from)
end
end)
RegisterServerEvent("SyncSAMotorsAd")
AddEventHandler('SyncSAMotorsAd', function(inputText)
TriggerClientEvent('DisplaySAMotorsAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad samotors" then
CancelEvent()
TriggerClientEvent("SAMotorsAd", from)
end
end)
RegisterServerEvent("SyncLSCustomsAd")
AddEventHandler('SyncLSCustomsAd', function(inputText)
TriggerClientEvent('DisplayLSCustomsAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad lscustoms" then
CancelEvent()
TriggerClientEvent("LSCustomsAd", from)
end
end)
RegisterServerEvent("SyncCabAd")
AddEventHandler('SyncCabAd', function(inputText)
TriggerClientEvent('DisplayCabAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad dcabco" then
CancelEvent()
TriggerClientEvent("CabAd", from)
end
end)
RegisterServerEvent("SyncFBAd")
AddEventHandler('SyncFBAd', function(inputText)
TriggerClientEvent('DisplayFBAd', -1, inputText)
end)
AddEventHandler('chatMessage', function(from, name, message)
if message == "/ad facebook" then
CancelEvent()
TriggerClientEvent("FBAd", from)
end
end)
---------------------------------
-- Created By Toni Morton --
-- Please, Leave these credits --
---------------------------------
client.lua
---------------------------------
-- Created By Toni Morton --
-- Please, Leave these credits --
---------------------------------
RegisterNetEvent("TrafficAlert")
AddEventHandler("TrafficAlert",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncTrafficAlert', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayTrafficAlert')
AddEventHandler('DisplayTrafficAlert',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_LS_TOURIST_BOARD", "CHAR_LS_TOURIST_BOARD", true, 1, "~y~LS Traffic~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("AmmuAd")
AddEventHandler("AmmuAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncAmmuAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayAmmuAd')
AddEventHandler('DisplayAmmuAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_AMMUNATION", "CHAR_AMMUNATION", true, 1, "~y~Ammunation~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("AmmuAd")
AddEventHandler("AmmuAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncAmmuAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayAmmuAd')
AddEventHandler('DisplayAmmuAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_AMMUNATION", "CHAR_AMMUNATION", true, 1, "~y~Ammunation~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("FleecaAd")
AddEventHandler("FleecaAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncFleecaAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayFleecaAd')
AddEventHandler('DisplayFleecaAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_BANK_FLEECA", "CHAR_BANK_FLEECA", true, 1, "~y~Fleeca Bank~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("MBankAd")
AddEventHandler("MBankAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncMBankAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayMBankAd')
AddEventHandler('DisplayMBankAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_BANK_MAZE", "CHAR_BANK_MAZE", true, 1, "~y~Maze Bank~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("LMotorsAd")
AddEventHandler("LMotorsAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncLMotorsAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayLMotorsAd')
AddEventHandler('DisplayLMotorsAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_CARSITE", "CHAR_CARSITE", true, 1, "~y~Legendary Motorsports~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("SAMotorsAd")
AddEventHandler("SAMotorsAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncSAMotorsAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplaySAMotorsAd')
AddEventHandler('DisplaySAMotorsAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_CARSITE2", "CHAR_CARSITE2", true, 1, "~y~San Andreas Motorsports~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("LSCustomsAd")
AddEventHandler("LSCustomsAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncLSCustomsAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayLSCustomsAd')
AddEventHandler('DisplayLSCustomsAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_LS_CUSTOMS", "CHAR_LS_CUSTOMS", true, 1, "~y~LS Customs~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("CabAd")
AddEventHandler("CabAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncCabAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayCabAd')
AddEventHandler('DisplayCabAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_TAXI", "CHAR_TAXI", true, 1, "~y~Downtown Cab Co.~s~", "");
DrawNotification(false, true);
end)
RegisterNetEvent("FBAd")
AddEventHandler("FBAd",function()
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
local input = true
Citizen.CreateThread(function()
while input do
if input == true then
HideHudAndRadarThisFrame()
if UpdateOnscreenKeyboard() == 3 then
input = false
elseif UpdateOnscreenKeyboard() == 1 then
local inputText = GetOnscreenKeyboardResult()
if string.len(inputText) > 0 then
TriggerServerEvent('SyncFBAd', inputText)
input = false
else
DisplayOnscreenKeyboard(false, "FMMC_KEY_TIP8", "", "", "", "", "", 150)
end
elseif UpdateOnscreenKeyboard() == 2 then
input = false
end
end
Citizen.Wait(0)
end
end)
end)
RegisterNetEvent('DisplayFBAd')
AddEventHandler('DisplayFBAd',function(inputText)
SetNotificationTextEntry("STRING");
AddTextComponentString(inputText);
SetNotificationMessage("CHAR_FACEBOOK", "CHAR_FACEBOOK", true, 1, "~y~Facebook~s~", "");
DrawNotification(false, true);
end)
---------------------------------
-- Created By Toni Morton --
-- Please, Leave these credits --
---------------------------------
__resource.lua
client_script 'client.lua'
server_script 'server.lua'