Editable files
Client Editable.lua
--[[
Cleint Event List
tgiann-antirpf:testIsStarted (args1: true or false)
]]
config = {
playerTestWeapon = `weapon_pistol_mk2`,
magic = {
adminMessage = "Magic Bullet",
kickMessage = "Delete Magic Bullet RPF File!"
},
aim = {
adminMessage = "Slient Aim/Aim Bot",
kickMessage = "Delete Slient Aim/Aim Bot RPF File"
}
}
RegisterNetEvent('QBCore:Client:OnPlayerLoaded')
AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
TriggerServerEvent("tgiann-antirpf:server:startTest")
end)
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
TriggerServerEvent("tgiann-antirpf:server:startTest")
end)
function kickFunction(data) -- data = {adminMessage = "Admin Messega", kickMessage = "Kick Message"}
TriggerServerEvent("tgiann-antirpf:kick", data)
end
-- if your inventory has a weapon give function on your server you may need to edit this
function giveWeapon()
local hash = config.playerTestWeapon
GiveWeaponToPed(PlayerPedId(), hash, 250, true, true)
SetPedAmmo(PlayerPedId(), hash, 250)
SetCurrentPedWeapon(PlayerPedId(), hash, true)
end
function removeWeapon()
RemoveAllPedWeapons(PlayerPedId(), true)
end
--[[ -- Test Commands
RegisterCommand("test", function()
TriggerServerEvent("tgiann-antirpf:server:startTest")
end)
RegisterCommand("giveweapon", function()
giveWeapon()
end)
RegisterCommand("spawnped", function()
while not HasModelLoaded(`a_m_m_beach_01`) do
RequestModel(`a_m_m_beach_01`)
Wait(100)
end
local ped = CreatePed(4, `a_m_m_beach_01`, GetEntityCoords(PlayerPedId()) - vector3(0.0, 0.0, 1.0), GetEntityHeading(PlayerPedId()), false, false)
FreezeEntityPosition(ped, true)
SetBlockingOfNonTemporaryEvents(ped, true)
SetPedArmour(ped, 100)
end) ]]
Client moneyEditable.lua
local webHook = "YourLogWeebHook"
RegisterServerEvent('tgiann-antirpf:kick')
AddEventHandler('tgiann-antirpf:kick', function(data)
local src = source
local msg = GetPlayerName(src) ..'('.. GetPlayerIdentifiers(src)[1] ..') '..data.adminMessage
DropPlayer(src, data.kickMessage)
PerformHttpRequest(webHook, function() end, 'POST', json.encode({username = "TGIANN-BOT", content = msg}), {['Content-Type'] = 'application/json'})
end)
Last updated