Need help with making delay on tanks to prevent tank spamming

Hi so ive got this war server but everyone is spamming tanks and i want to prevent them from doing that
ive been trying to figure out how to do it the whole day but still no answer heres my code

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

    local playerPed = GetPlayerPed(-1)
    local veh1 = GetDisplayNameFromVehicleModel
local veh = GetVehiclePedIsIn(PlayerPedId(), false)
local vehicleModel = GetEntityModel(GetVehiclePedIsIn(PlayerPedId()))
 if vehicleModel == "782665360" then
print(vehicleModel)

end
end
end)

right now the script is just trying to get model of rhino and if player is in the vehicle it will print the model but its not working please someone who can help …